Make login page not appear in history.
Add support for testing server.