rewrote code for upgrading resos in a portal
Merge pull request #6 from dazz/bugfix/resoUpgradeOrder

rewrote code for upgrading resos in a portal