Bug 955463: Move hot deploy logic into the v2 model

Consolidate all hot deploy logic into the v2 model to enforce consistency
of application state.
Bug 928621 - needed more information on why the flow does what it does.
Bug 928621 - Detect whether the gear is missing a frontend configuration.
Merge pull request #2223 from ironcladlou/bz/955463

Merged by openshift-bot
Merge pull request #2225 from rmillner/BZ928621

Merged by openshift-bot
Card online_runtime_287 - Add cartridge/usr/template locations

* GIT template search locations:
    * ~/<cartridge home>/template
    * ~/<cartridge home>/template.git
    * ~/<cartridge home>/usr/template
    * ~/<cartridge home>/usr/template.git
Missed a step in teardown