AGPUSH-504 Adding snapshot and restore hooks for upgrading the cartridge

Instructions for testing the upgrade process can be found here:

https://gist.github.com/fjuma/499827d650465a1a8f5a