Home page HTML now generated from a template. Fixed errors in functional_tests.py