[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.

PHPBB3-13110