Cleaned up header.php and footer.php.  Fixed inclusion order of footer.php in all the templates.  Got functions.php ready for Royal Slider.