[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/12787] Fix the absolute board url

PHPBB3-12787
[ticket/12787] Remove one app.php when it's both in $path and $web_root_path

PHPBB3-12787
[ticket/12804] Hide Jabber from UCP & member search when disabled

PHPBB3-12804
[ticket/12804] Hide jabber for subSilver2 as well

PHPBB3-12804
[ticket/12804] Dont use ternary form

PHPBB3-12804
[ticket/12787] Add controller_helper::get_current_url()

PHPBB3-12787
[ticket/12787] Updates phpbb_mock_controller_helper

PHPBB3-12787
[ticket/12804] Disable jabber from memberlist sort options

PHPBB3-12804
Merge remote-tracking branch 'paybas/ticket/12804' into develop-ascraeus
[ticket/12834] Fix tests to match what we want to have

PHPBB3-12834
[ticket/12834] Correctly match directories in session page

Also clean path before working with it

PHPBB3-12834
Merge pull request #2676 from Nicofuma/ticket/12787

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

* Nicofuma/ticket/12787:
  [ticket/12787] Updates phpbb_mock_controller_helper
  [ticket/12787] Add controller_helper::get_current_url()
  [ticket/12787] Remove one app.php when it's both in $path and $web_root_path
  [ticket/12787] Fix the absolute board url
  [ticket/12787] Use a parameter (_referer) instead of the Referer header
  [ticket/12099] Add unit tests for get_web_root_path_from_ajax_referer()
  [ticket/12099] Remove config again
  [ticket/12099] Correctly fix the path when performing AJAX requests
  [ticket/12099] Add request argument to path_helper service
Merge remote-tracking branch 'nickvergessen/ticket/12834' into develop-ascraeus