WIP Cartridge Refactor

* Add support for bare repositories
Merge pull request #2 from jwhonce/dev/v2_wip

WIP Cartridge Refactor