2161: Allow teachers to create teachers.

Adds an extra setting to the edit user interface to allow changing them to teacher.

Also fix the template expander.