Add methods for supporting sorting by version
Add support for upgrades of resources
Add tests to check resource upgrades