Cleaned up template files by moving the global header and global footer into their own templates.