[ticket/12831] Allow events in page_header functions to prevent the setting of HTTP headers

https://tracker.phpbb.com/browse/PHPBB3-12831
The idea here is to allow integrators to begin output before this should they need to, rewriting the headers is not the objective but to prevent them from being set to prevent a PHP notice. See tracker ticket.