[ticket/13059] Add core event to generate_page_link()

Add core event to generate_page_link() to allow overriding/modifying pagination URLs.
Event request: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=45905

<a href="http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=45905">PHPBB3-13059</a>.
@rxu if you post a comment `!unset WIP` the blue label is being removed.
This will help us as a dev team to easier keep track of PRs:
https://area51.phpbb.com/phpBB/viewtopic.php?f=99&t=46079