Issue222 email templates

Moved out in-line emails from code, they're now in a templates folder, and are generated with render_template(). `app_email.py` handles the application's emails via flask_mail, which has resulted in some new configuration options in `settings.py`

Further work could be to include HTML versions of the same messages, which can be rendered using the same parameters.