Frontend: Move the registration of the auth token from the user controller to the model.
Frontend: Make sure that the user model is cleared after logging the user out.
Refactor map view.