Moved the context-related functions to their own module.
The index uses the base template.
Rebuild app file.
Whitespace.
Added a generic handler for 404 pages.