Fix setting the max-upload-size for really large values.

php can only parse filesize units up to gigabytes, not terabytes or petabytes.
Send URI instead of filepath to NGINX for X-Accel
Add unit tests for OC_Helper::phpFileSize function
be nice and use a relative import so people can use the class without firing up owncloud
Fix linkToPublic. Refs #8218
Also fix linkToAbsolute
Add tests for linkTo, linkToPublic, linkToRemote, linkToRemoteBase
Remove unused var
fixes #8376
rewind iterator before iteration starts
Group Database backend must not gather user details itself but ask user
backends. This is a port to master from PR #7745

remove OC_GROUP_BACKEND_GET_DISPLAYNAME option for group backends

Conflicts:
	lib/private/group/backend.php

LDAP: getDisplayNamesInGroup is not an option for group backends anymore

Conflicts:
	apps/user_ldap/group_ldap.php
	apps/user_ldap/group_proxy.php

clean up group backends

Conflicts:
	lib/private/group/database.php

remove now unnecessary test

implement getDisplayNames in group manager

adjust user manager tests

test for group manager's displayNamesInGroup

trim must not be used in empty in PHP < 5.5

keep the constant to not provoke PHP warnings

Conflicts:
	lib/private/group/backend.php
the group manager calls exists check less often, adjust test accordingly
refs #8376; added comment and applied patch on other files
refs #8376; spaces=>tabs
add class Pimple to autloader
Emit a new hook, when a file is being updated only
The write-hook also is triggered for created files

Fix #8131
Correctly emit create/update hooks when a large file is being created/update
after being uploaded in .part files

Fix #8131
Deduplicate code
Update tests to test for create and update aswell
Remove unneccessary statement from test