WIP Cartridge Refactor - Deploy Application Repository/ERBs

* relax cartridge permissions
* more error checking
* deploy application repository to app-root/runtime/repo
* add support for shared opt directory