MT#6789 Implement email template management.

Basic functionality to create, edit and delete email templates.