[ticket/12099] Add request argument to path_helper service

PHPBB3-12099
[ticket/12099] Correctly fix the path when performing AJAX requests

If the current request is a AJAX we need to fix the paths.
We need to get the root path based on the Referer, so we can use
the generated URLs in the template of the Referer. If we do not
generate the relative path based on the Referer, but based on the
currently requested URL, the generated URLs will not point to the
intended locations:
	Referer				desired URL			desired relative root path
	memberlist.php		faq.php				./
	memberlist.php		app.php/foo/bar		./
	app.php/foo			memberlist.php		../
	app.php/foo			app.php/fox			../
	app.php/foo/bar		memberlist.php		../../
	../page.php			memberlist.php		./phpBB/
	../sub/page.php		memberlist.php		./../phpBB/

PHPBB3-12099
[ticket/12099] Remove config again

PHPBB3-12099
[ticket/12099] Add unit tests for get_web_root_path_from_ajax_referer()

PHPBB3-12099
[ticket/12787] Use a parameter (_referer) instead of the Referer header

PHPBB3-12787
[ticket/12782] Use an interface for the phpbb event_dispatcher

PHPBB3-12782
[ticket/12782] Add doc block

PHPBB3-12782
[ticket/12787] Allow the route to say that the referer has to be used.

PHPBB3-12787
Revert "Merge branch 'ticket/12787' into test-profiler"

This reverts commit a2ebf97815e6fd15e3c1846471a3e8478dddb97d, reversing
changes made to 5f790be0f3b328cb17613ba2eab5dbe30248015c.
Merge branch 'ticket/12787' into test-profiler
fix