User authentication

Add ability for users to log in and log out. Resolves #10