proper response in case the upload fails - e.g. in case permissions on shared folders are not enough
in case the file is new isCreatable() is checked
in case the file exists isUpdatable() is checked
use dir to determine the proper permissions
Use Group methods for searching, fixes #4201
Whitespaces
Use JSON to send/receive group data.
Squashed commits from PR #4364 for master.

Conflicts:
	settings/js/users.js
Break long lines into smaller ones.
Merge pull request #4364 from ringmaster/fix_4351

Store and retrieve group data as JSON
webdav quota now displays the same values as the web interface does

Conflicts:
	lib/helper.php
storage information is path specific
LDAP: case insensitive replace for more robustness
fixes #4343
adding unit tests to determine length
adding unit tests for quota checks
lacy initialization of fileView - in case basic auth is used FileSystem is not yet initialized during the initialize() call

Conflicts:
	lib/connector/sabre/quotaplugin.php
Merge pull request #4595 from owncloud/ldap_robust_replace

LDAP: case insensitive replace for more robustness
Merge pull request #4357 from owncloud/fixing-4341-stable5

Enable file upload to shared folder with create permission only
5.0.11 RC1
Cache: don't check if the parent exists in the cache if we are already sure it does
better variable naming