Mailer tests
Add log and send-mail to api
Auth, plus some model refactoring
Auth fn testing
Auth api added to defaction
Cleanup
Start of dispatcher