Changes to get code running as a web app.

ToDo: separate html into separate template files.