A few fixes to the header and footer, including creating our own local copy of the header and footer to fix a few issues.