Make unit tests run without py.test.
Implement the login handler part of the authenticator.