Add beforePageHeader to the header.tpl

Sometimes you need to add html before the header (like GTM code odd a custom header across multiple websites).
A beforePageHeader event in the header template can be used for such code.
(Previous pull request was to the wrong branch)