Cleaned up header and footer

Cleaned up the code in the header and footer files and moved them to
the include folder instead of the web accessible folder.