Use actual file path on rename/delete

When renaming or deleting a file that is in a subdirectory, performing
the action from the sharing overview or another file list view, the
actual directory of the file must be used instead of the current
directory.
Prevent loadApps on upgrade

Moved OC::needUpgrade() to OCP\Util::needUpgrade() to make it accessible
form the router.
Moved maintenance + upgrade check to the router.
Setup the external share manager in a hook

To make sure the external shares are initialized in the right order and
make sure the session is correctly initialized before, the external
share manager is now set up in a filesystem setup hook.
Clear file selection when list is repopulated

When calling FileList.setFiles() the current selection needs to be
cleared.
Merge pull request #9150 from owncloud/remoteshare-fixsetuporder

Setup the external share manager in a hook
Only cache enabled apps when logged in
Dont allow opening writable streams on a read only dav mount
Merge pull request #9153 from owncloud/files-unselectafterdelete

Clear file selection when list is repopulated
Add comment
Merge pull request #8974 from owncloud/router-preventloadappsonupgrade

Prevent loadApps on upgrade
Merge pull request #8931 from owncloud/filelist-usepathforaction

[master] Use actual file path on rename/delete
Fix blurring of invalid file name on rename

When renaming to an existing file name, blurring the field should not
remove it.

This fix keeps the field until escape is pressed instead of replacing it
with a broken empty space.
Merge pull request #9124 from owncloud/move-permissions

Fix moving files into read only public shares
Merge pull request #9159 from owncloud/enabledapp-cache-loggedin

Only cache enabled apps when logged in
Merge pull request #9170 from owncloud/files-renamevalidationblur

Fix blurring of invalid file name on rename
Incorporate mssql branch
setup code now working
adding mssql to autotest.sh
Update 3rdparty
Restore sqlsrv based connectivity for Windows