port database layer from appframework to core
fix scrutinizer issues
fix doc strings for db facade
remove unusued variable
remove unusued variable
move db into iservercontainer
remove useless import
Fix typo & add type
fix phpdoc for entities
dont update entity and dont run an update query if an entity wasnt changed at all
reduce multiselect max-width from 400 to 200px to not take too much space
polish jslint for files-upload.js
add cors middleware

remove methodannotationreader namespace

fix namespace for server container

fix tests

fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request

remove uneeded  local in cors middleware registratio

dont uppercase cors to easily use it from routes

fix indention

comment fixes

explicitely set allow credentials header to false

dont depend on better controllers PR, fix that stuff later

split cors methods to be in a seperate controller for exposing apis

remove protected definitions from apicontroller since controller has it
Merge pull request #8520 from owncloud/jslint_polishing_in_file_upload

polish jslint for files-upload.js
[tx-robot] updated from transifex
Make db connection protected
Fix method signature
$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