Set default page.
Fix cookie secret not set.
Clean up
Add some functional tests.