[ticket/12985] Add core.login_box_redirect

Add core.login_box_redirect core event to allow extensions to redirect a
user to a specific page when logging in.

PHPBB3-12985
Move this line before the call to `$phpbb_dispatcher->trigger_event()`