Do some cleanup.

- Move configuration to a separate file. Changes between development
  and production mode don't show up in git this way.
- Don't use flask.g anymore to pass information from the view to the
  template.
- Add a test suite for the views.
- Remove some unused image files.
Incorporate changes found on the server.