Finally. The Brompton Electric is on the way. Not cheap, mind.

People have been doing things like this for some time now. The problem was always finding motors small enough to fit in the narrow forks.

http://www.wired.co.uk/article/new-brompton-electric-bike-review-uk-price-release-date-top-speed-range