Various minor fixes and changes.
Add tests.
Config loading, exception reporting, SSL redirect.
Add email notifications for failed transactions.
Ignore SQLite db file.
Add config.py template.