[ticket/13110] Add core event to the page_footer() function

Add core event to the page_haedar() in includes/functions.php to allow
extensions handling overall page output before its displaying.

<a href="https://tracker.phpbb.com/browse/PHPBB3-13110">PHPBB3-13110</a>.