User authentication

Add ability for users to log in and log out. Resolves #10 
It makes most sense to me to have them as class methods since I don't necessarily have an instance of `user` each time they're currently called. I'd definitely be willing to change them if given a good reason, though.