CB-6337 Print nice error when cordova-cli hits various expected things

Add missing CordovaError requires
Reduce specificity of jasmine toThrow() expectations
CB-6338 Improve error for missing template

Fix create test to properly lie about lib/dir
CB-6357 platform: Refactor into distinct functions
CB-6357 platform: provide exports for functions
CB-6357 call_into_create: support no output
CB-6357 platform check - install each platform to determine working + version number
CB-6357 platform check: sort output
CB-6357 platform: fix indentation
CB-6357 minor style changes
Merge branch 'cb_6337' of github.com:blackberry/cordova-cli
Merge branch 'cb_6357' of github.com:blackberry/cordova-cli