Add logout form to index page. Switch dynamically between login / logout forms.
Add session id handling.