Added User#new, User#login, User#close and User#logout
Added changes to branch issue13 and removed unnessecary code.
Merge branch 'issue1' into development.