Custom markdown email templates stored in database.

closes #62