new exams use user's preferred language

This also moves generation of the window.Editor object into the view, instead of the template