[CB-3367] Updates the framework to work with a smarter plugman and have a dumber packager
- Re-writes cordova/plugin scripts to match the CLI interface
- Includes the use of a global plugin repository for lookup
- Adds a native/<arch> folder for containing the framework files of an app
- Moves core plugins from template to root and installs at create time
- Update package.json to get plugman from apache master
copy cordova.js into app root instead of chrome
Updating cordova.blackberry10.js
[CB-3161] Improvements to target command help

- Updated both run and target command help
- Target type is now device by default

Reviewed by Jeffrey Heifetz <jheifetz@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
Updating cordova.blackberry10.js
[CB-3434] [BlackBerry10] Implemented pause and resume events

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
Update package.json for explicit versioning of jWorkflow and plugman
[CB-3437] Fix path issues in create and plugin scripts

- Use path.resolve on project path before building paths
- Use path.join for all paths in create script
- Modify plugin script to invoke plugman using node.exe on windows

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
Update plugin.xml files for Contacts extension

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
[CB-3486] Update scripts to work without changing working directory

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
[CB-2927] [CB-2939] Update build and run scripts to more closely match cordova spec

- run now invokes build rather than the reverse
- changes to argument syntax
- moved the debug token feature from "build" script to "run" script
- added a validation feature for debug token so it won't be created all the time
- added --no-build and --keystorepass for "run" script
- added a default build.id in config.xml
- cleaned up output messages
- removed "keystorepass" from the default project.json

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
Escape double quotes in PIM lib

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>
[CB-3442] cordova-ver.js to cordova.js
[CB-3473] update hello world
[CB-3473] updated version, unwound dev label which causes problems with upgrade script
[CB-3473] updated cordova.js
[CB-3473] updated helloworld and js
[CB-3473] updated version to 2.8.0rc1
[CB-3442] lost commit, fix for bb10
[CB-3381] Output usage info on error for all scripts

Reviewed by Bryan Higgins <bhiggins@blackberry.com>
Tested by Tracy Li <tli@blackberry.com>