Scripted Header and Footer

This will make adding new pages easier. Any change to the header or
footer will affect all pages, allowing for easier menu editing. I also
made other minor fixes.