Wrapped template functions in re-declaration guards.
Checking if HTTPS is set before checking its value.
Added check for mod_php before using php_value directive.
Merge pull request #23 from emartinez-usgs/concurent

Concurent
Change escape to encodeURIComponent, to fix issue #10
Updated /theme rewrites to not conflict with example directory contents
Changed site-footer from footer containing nav elements to nav containing section elements, to fix issue #11