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

WIP Cartridge Refactor - Deploy Application Repository/ERBs