Replace deprecated functions
Remove redundant local variables
Remove some redundant closing tags
Merge pull request #45 from jamiesnape/DeprecatedUnused

Replace deprecated functions, remove redundant local variables and closing tags
Refactor and fix the writing of config files
Add more time zones
Fix failing tests
Fix issue with empty configuration entries
Add App Engine email support
Add SQLite support