Set maintenance mode before upgrade.
Disable maintenance mode after upgrade.
Merge pull request #329 from owncloud/upgrade-set-maintenance

Set maintenance mode before upgrade