split upgrade logic from ajax file
Updater: pass update url as argument to update check
fix typo
Merge pull request #3963 from owncloud/update-logic-split

Move the upgrade logic to \OC\Updater