Generates index.html from template, linking js/css files and interpolating arbitrary vars.