Refactor error messages, mails, rendering / output into separate modules
Refactor error messages, mails, rendering / output into separate modules