BMW is putting the finishing touches on the first-ever electric M3 and a facelifted M5 with a plug-in hybrid V8. Both performance sedans are due in 2027.