Basic authentications and tests

Users can log in, log out, and sign up.