change order of registering api and capabilities to fix file version previews
reset collection to 'root' after adding a route to the api
introduce and use getCurrentConnection()
use icon-confirm instead of text for accepting remote share, works better with translations
IE8 fixes
Return and use isPreviewAvailable for share previews

Since the mime type is known, now isPreviewAvailable is returned as well
and used by the JS side to properly render mime icon and previews.
Fix FileActions merging override

When merging FileActions, the register() functio needs to correctly
override the previously merged action handler without affecting the
original one.
set localhost as default database host for installation
fix user menu name and image not showing clicky mouse pointer
fix icons being slightly off in log in
fix 'remember' label being slightly off in log in
Merge pull request #9432 from owncloud/share-preview

Return and use isPreviewAvailable for share previews
Merge pull request #9426 from owncloud/design-remoteshare-confirm

use icon-confirm instead of text for accepting remote share, works better with translations
Merge pull request #9440 from owncloud/files-fileactionsdeepcopy

Fix FileActions merging override
fix cursor for other elements in top right corner
Merge pull request #9444 from owncloud/design-fix-pointer

Design polish
Merge pull request #9441 from owncloud/install-sql-host-default

Set localhost as default database host for installation
Merge pull request #9269 from owncloud/fix_versions_preview

change order of registering api and capabilities to fix file version previews
Add machine readable error messages to OC\JSON

Reload the files app in case of authentication errors, expired tokens or disabled app

Reloading will triger the full server side handeling of those errors

formatting

fix missing semicolon + some jshint warnings