Fix sharing error message - id -> file name

fixe #2827
Merge branch 'master' into fix-sharing-code
pass the name of the item source from the browser to the server - no need to get the data via complicated db queries
use SERVERROOT instead of WEBROOT in all file_exists checks, whitespace
Do not calculate $isWrapped if not needed.
Reset mimetype to application/octet-stream on empty reply from file command.
Return early if fileinfo is there.
Map empty mimetypes to octet-stream for Oracle DBMS.
also add new parameter to function calls
Merge pull request #5396 from owncloud/fix-sharing-code

Fix sharing error message - id -> file name
Merge pull request #5601 from owncloud/fix-mimetype-detection

Fix mimetype detection
remove user from cache if he was deleted successfully
Added fix to correctly parse non-array error messages

Some apps like the antivirus app return messages in a non-array format.
fix style of public share page
Merge pull request #5607 from owncloud/public-share-style

fix style of public share page
Merge pull request #5606 from owncloud/files-uploaderrorparsingfix

Added fix to correctly parse non-array error messages
Merge pull request #5577 from owncloud/fix_urlgenerator_imagepath

use SERVERROOT instead of WEBROOT in all file_exists checks, whitespace
Merge pull request #5605 from owncloud/fix_delete_user

remove user from cache if he was deleted successfully
Merge branch 'master' into fix_file_cache_updater_master