Made efficiency updates per Douglas Mason on Extension talk:Header Footer
Removed hook global function, instead using HeaderFooter class static function
Merge pull request #1 from jamesmontalvo3/efficiencyfix

Merging efficiency changes into master branch