Cleaned up login. Removed sessions controller.
More changes to login and added some more tests.