Refactor module upgrade.

Using code added in KSP-CKAN/CKAN-core#22
If mergerd before, we will lose the "upgrade module=version" syntaxe.