Add support for upgrade script to be called during cartridge upgrades.

Trello: https://trello.com/c/JdLrIBk2/173-2-upgrade-process-improvement (origin_runtime_173)
Merge pull request #3091 from pmorie/dev/upgrades

Merged by openshift-bot