WIP Cartridge Refactor - support for git submodules and template url

* Add support for git submodules and tests
* pull template git repository from an url
* Cleanup runtime/repo before deploy