Added User#new, User#login, User#close and User#logout