Upgrading templates.   Fixing various bugs.   Changing app.html to index.html.