Merge pull request #3271 from owncloud/fix_for_util_tearDownFS

fix for tearDownFS, after filesystem::tearDown() in Util
LDAP: better variable name
LDAP: implement UUID and internal username override
Added pre_share hook
Switched it for post_share hook in encryption hooks
Stop a file from being shared if the encryption procedure fails for any users
Move legacy filesystem classes
Add wrapper storage backend
LDAP: Implement clear mappings functionality
LDAP: fix display of numerical display names
Add mechanism to allow apps to wraper storage classes
touch file relative to users file folder, otherwise the hooks will be ignored
update etag for for the touched file
rename a file if it gets restored so that it no longer exists as a version. Otherwise it can happen that the expire() function removes all other versions so that we end up with only one version which is exactly the same as the original file
don't call correctFolder() in touchHook, it will be called later in the writeUpdate()
Fixed bugs with pre_share hook usage
Made sure new user being shared to is added to array of sharing users
Implemented initial recoveryAdmin functionality in crypto file proxy
Improvements to code formatting & indentation
Fixes to code formatting and indentation
added helper class and moved hook registration to it
improved tests and include helper
Merge pull request #3277 from owncloud/fix-change-password

fix inconsistent post parameters in change password operation