Merge pull request #6 from steverobbins/master

moving head.php to global templates and removing .php from footer
dynamically allocate base
Merge pull request #9 from stevether/dev

dynamically allocate base
Merge pull request #2 from stevether/master

updating from live master