Add templated rich text email capabilities

Hopefully this will make it easy to maintain nice looking
email templates.