Added geenric email service and migrated existing mailer to use it.
Added hooks to write html emails on completeion of wizard, download of
template and upload of template.