WIP Cartridge Refactor

* Add support for bare repositories