WIP Cartridge Refactor - Add support for connection hooks

* Update mock cartridge to have a connection hook
* Add support for connection hooks in V2 cartridge model