Merge headers and footers and use rebase
use page_type for body class, standardise templates