I believe they used
https://www.sram.com/sram/urban/products/automatix
And you are right, for safety reason, front brake should be there.

Folding is the same, mod the hub to fit the frame.
Moulton has something similar. I wonder how well the belt drive works.