fix generating mpk for pockets.
Add a module for managing store upgrades gracefully.