Clean up.

- separated out the server startup
- imported the index into the module file
- adjust tests to just import the module
More cleanup

- rename index to views
- adjust __init__ to comply
Template cleanup

- add a home link
- add a login page link
Move the secret key into the config file