Added code to support dynamic menu creation.

The dynamic parts of the menu are created using for loops within the
html template.  Their contents is sourced from a corresponding python
function defined in the "menu" module.