Check for upgrade/maintance mode before trying to load an app
Still load js files in maintance mode
Merge pull request #1384 from owncloud/upgrade_fix

Check for upgrade/maintance mode before trying to load an app