Create login. Not working.
Implement sessions. Boom.
Add domainFromUrl func; Fix randString len too long.
Calculate full urls once; refactor code.
Show error message if credentials wrong.
Add logout function.
Add logout link.
Add logout link.
BROKEN. Begin major refactor.
Refactor serveLogin.
Refactor main admin page, login and logout.
Fix cookie wouldn't get deleted.
Refactor edit route.
Move login logic code into it's own handlerfunc.
Move login logic code into it's own handlerfunc.
Move logout logic into its own handlerfunc.
Add edit handler; block non-get and non-post methods.
Finish splitting up admin handler.
Merge simplified admin area sessions.