[ticket/11508] Split parts of build_url() into reusable functions.

PHPBB3-11508
[ticket/11508] Build the jumpbox hidden fields using the _form action_

PHPBB3-11508