Refactored header, footer and search form code to enable special
page titles when viewing individual posts.