index-html refactoring: directives and html-templates for header and footer created.