Bug 965364 - ApplicationRepository#deploy assumed template application existed

* Put guards and messaging in place for use case where cartridge did not provide application template
Merge pull request #2584 from jwhonce/bug/965364

Merged by openshift-bot
Merge pull request #2585 from danmcp/master

Merged by openshift-bot