Added base template for header and footer and template inheritance.