Added attachments to email body
Added return false when there is no email template set
Removed some bogus code
Added session handler.
replaced == '' with empty()
Actually don't use cache if it's not enabled
Skip cache if it's not enabled
Added setup model.
Merge pull request #9 from JBleijenberg/feature/add-setup-functionality

Feature/add setup functionality
Rethrow exception after logging them
Converted all xml configfiles to son. This enhances usability
Rewritten some bulgy code.
Merge pull request #10 from JBleijenberg/feature/convert-config-files-to-json

Feature/convert config files to json
Removed application.json and added an example file. application.json should always be gitignored.
Added application.son to gitignore
Merge pull request #11 from JBleijenberg/development

Merge development into master