CRM-11823 - Enable CiviCRM to generate HTML HEAD elements on non-Civi pages

https://github.com/civicrm/civicrm-core/pull/166