Add a login and logout view and templates, update tests to work with
them.