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
Merge pull request #9445 from owncloud/filelist-auth-error

Reload the page when the files app encounters an authentication error