TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

[Issues Fixed]
TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts
(partial) TIMOB-8944: BlackBerry: Connect drillbit to BB simulator or device

[Added]
devicemanagement.py

[Changes]
blackberry.js
- function BlackBerrySimulator
  - added member blackberryDeviceManagement
- added function createDeviceManagementProcess
- removed unused function getTestHarnessPID, testHarnessNeedsBuild
- implemented functions isTestHarnessRunning, fillTestTemplateData, pushTestJS, stageSDK, killTestHarness
- function run
  - create a placeholder process for logs and uncomment the code that uses it
- functions launchTestHarness, runTestHarness
  - removed unused variable

blackberryndk.py
- function package
  - added parameter type and use it to package using devMode

builder.py
- remember and pass along the type

[Tests]
Test 1: Run drillbit
1) Run scons to build the mobile sdk
2) Run the following command:
drillbit\drillbit.py --platforms=blackberry
3) Click "run tests"
4) Verify the test_harness app is built, deployed, and run
5) Close drillbit and repeat Step 2
6) Verify the test_harness app is closed when drillbit starts
TIMOB-8943: addressed review comments
- centralized program names
- make echoing the command optional (default is true)
- if there is a log but no file, output to stdout instead of nowhere
- moved command building from devicemanagement.py to blackberryndk.py
- fixed blackberryndk.py unit tests
- made Builder.type2variantCpu public
- remember stdout and use it
Merge branch 'TIMOB-8944_01' into TIMOB-8944_WIP_04
TIMOB-8944: BlackBerry: BlackBerry: Connect drillbit to BB simulator or device

[Issues Fixed]
TIMOB-8944: BlackBerry: BlackBerry: Connect drillbit to BB simulator or device

[Changes]
blackberry.js
- function run
  - removed useless blackberrySimulatorProcess
  - remember readLineCb
- function launchTestHarness
  - when finished starting up the test harness, capture the logs and check the exit code
- added stub function handleCompleteBlackBerryEvent

blackberryndk.py
- added functions printExitCode, _isAppRunning, _printAppLog, appLog

devicemanagement.py
- added commands and functions printExitCode, appLog

[Tests]
Test 1: Run drillbit
1) Run scons to build the mobile sdk
2) Run the following command:
drillbit\drillbit.py --platforms=blackberry
3) Click "run tests"
4) Verify the test_harness app is built, deployed, and run
5) Close the app on the simulator
6) Verify the logs are printed
Note: The test will not finish because the app was closed manually (not what should happen) and the framework doesn't yet output the Ti logging.
If you want to see the test fail when the app crashes, put a return -1; in tibbapp/main.cpp.
TIMOB-9219: <BlackBerry: Refactoring event handler implementation>

Reviewers: JP, Alex

Change Log:
 - added separate implementation of event handler for each class
 - update project setting with qnx's includes paths

Test Cases:
 - build tibb and tibbtest
 - instance ui controllers and make sure event hanling is working for each
   one

Note: it needs to generate moc file for each native object (see MOC Note
updated)
Addressed comments.
Merge pull request #59 from dlifshitz-maca/TIMOB-8944_01

TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts
Merge branch 'blackberry' into TIMOB-8944_02
fix copy & paste typo
Merge branch 'blackberry' into eventHandler
Merge pull request #65 from Harutyun/eventHandler

TIMOB-9219: <BlackBerry: Refactoring event handler implementation>
Merge pull request #64 from dlifshitz-maca/TIMOB-8944_02

TIMOB-8944: BlackBerry: BlackBerry: Connect drillbit to BB simulator or device
Merge branch 'blackberry' into apidoc
- updated activity indicator apidoc
- add todo for toggle Button object