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)