Token-based authentication

This PR introduces authentication on top of the User model.
Derp :sweat_smile: