fix user profile form
catch unnamed parameters in custom function
new exams use user's preferred language

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