Added registration/login/logout machinery to the project.