Part way through adding email notifications.

Some other fixes such as mint autocomplete templates and using the correct readonly templates.