Added a log out feature

Restructured test page a bit to simulate a client app.