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
Merge pull request #1893 from jwhonce/wip/git_submodules

Merged by openshift-bot