Add unit tests for convertToRelativePath
Refer to relative path instead of absolute path

There is no need to refer to the absolute path here if we can use the relative one.

Conflicts:
	lib/private/templatelayout.php

Conflicts:
	lib/private/templatelayout.php
Add "$_SERVER['REQUEST_URI']" to fix the unit tests

Let's hope that works
Add proper setup and teardown

Properly restore REQUEST_URI and SCRIPT_NAME after test runs
Merge pull request #11673 from owncloud/backport-11593

Backport #11593
always use the correct share type
if it is not a folder share the path already points to the correct file
Merge pull request #11691 from owncloud/fix_pub_link_creation

fix target creation for public links
guess mimetype on touch

Conflicts:
	apps/files_external/lib/amazons3.php
Lazy initialize external storages

Backport of 075e8d8e8658913e1c5b8869f3e457fa6db2d847 from master
Backport of #11702

set up FS by username, not login name\!

better variable name
Merge branch 'stable7-upstream' into stable7-rotdrop