New email handling

- No longer using the database for email types - they're defined at a module level
- Moved views into their respective modules