Copy over the account handling code.
Implement simple login page.
Add a logout.