[ticket/13034] Fix the route generated for the frontend not in the phpbb root

PHPBB3-13034
[ticket/13034] Fix unit tests

PHPBB3-13034
[ticket/13036] Make the reference type configurable when generating a route

PHPBB3-13036
[ticket/13036] Add unit tests

PHPBB3-13036