Setup token based authentication

- New users will automatically get a token
- There is now an endpoint to make AJAX requests to login

JIRA: SPB-48
There is an assertNotRaises as well in the testing framework.