Merge pull request #8520 from owncloud/jslint_polishing_in_file_upload

polish jslint for files-upload.js
[tx-robot] updated from transifex
Fix Typo, define $ as global
Make db connection protected
 Redirect to index if the logout link is accessed without valid session

This is needed to prevent "Token expired" messages while login if a session is expired
@see https://github.com/owncloud/core/pull/8443#issuecomment-42425583
Fix method signature
Use proper PHPDoc and variable names in the LDAP lib

My IDE was so sad about this that it marked the whole file in red and yellow and forced me to fix this.
Fix Typo

I guess that should be `default` and not `defautl`, wondering how this ever worked.
$owner is not defined here

Fixes https://github.com/owncloud/core/issues/8539
Harden issubdirectory()

realpath() may return false in case the directory does not exist since we can not be sure how different PHP versions may behave here we do an additional check whether realpath returned false
Rename issubdirectory to isSubDirectory
Use @return instead of @returns
Use WizardResult|false instead of mixed
That's bool and not always true
Merge pull request #8504 from owncloud/cors-middleware

Add cors middleware
implement most of the basic stuff that was suggested in #8290
add request to dispatcher class
add test for not failing when adding more comments after type parameters, do not limit x-www-form-urlencoded to POST
fix broken if
add private property for reflector in security middleware