TIMOB-8924 BlackBerry: setter methods crash runtime

CHANGE LOG
- changed Ti8Event to use a context scope before calling JavaScript

TEST CASES
- build tibb
- build tibbtest
- deploy tibbtest on simulator
- push button in demo
- application should not crash
Modified framework to use TiObject to pass values to native objects

CHANGE LOG:
- ran formatter
- modified native classes to pass TiObject references
- added methods to convert V8 values to native values
- changed button property to use 'title' as opposed to 'label'

TEST CASES:
- build tibb
- build tibbtest
- run tibbtest on device
- button, label, slider, and progress bar should appear
Migrated to R4
Changes made based on code review
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml
- added blackberry xmlns

blackberry.js
- function installTestHarness
  - added suite parameter
  - call launchTestHarness
- function launchTestHarness
  - added suite parameter
  - build, deploy, and run the test_harness app
- function runTestHarness
  - pass 'blackberry' to handleTestError
  - set the status to Running
  - pass the suite parameter

drillbitmodule.js
- function initPlatforms
  - fix getting the env vars
- function handleTestError
  - added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py
- use return code

[Tests]
Test 1: Run drillbit
1) Build tibb
2) change simulator IP in builder.py
3) Run scons to build the mobile sdk
4) Run the following command:
drillbit\drillbit.py --platforms=blackberry
5) Verify the tests are shown
6) Click "run tests"
7) Verify the test_harness app is build and deployed
Note: the BlackBerry tests will not complete because communication with the simulator is not implemented
Removed methods to fix linking issues
Merge pull request #50 from dcampbell-macadamian/TIMOB-9091

TIMOB-9091: Fix tibbtest linking issues
TIMOB-8783 BlackBerry: Implement Global APIs Part 1

Reviewers: Harut, Alex

This patch adds all the stubs for all the methods and objects in the Global Namespace

Changelog:
- Add global methods to the root object
- Add String and JSON objects to the root object
- Removed unnecessary forward declaration in TiUIObject

New files:
- blackberry/tibb/TiJSONObject.cpp
- blackberry/tibb/TiJSONObject.h
- blackberry/tibb/TiStringObject.cpp
- blackberry/tibb/TiStringObject.h

Tests:
- Build tibb and tibbtest for all targets except for Device-Release as it is currently broken
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml
- added blackberry xmlns

blackberry.js
- function installTestHarness
  - added suite parameter
  - call launchTestHarness
- function launchTestHarness
  - added suite parameter
  - build, deploy, and run the test_harness app
- function runTestHarness
  - pass 'blackberry' to handleTestError
  - set the status to Running
  - pass the suite parameter

drillbitmodule.js
- function initPlatforms
  - fix getting the env vars
- function handleTestError
  - added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py
- use return code

[Tests]
Test 1: Run drillbit
1) Build tibb
2) change simulator IP in builder.py
3) Run scons to build the mobile sdk
4) Run the following command:
drillbit\drillbit.py --platforms=blackberry
5) Verify the tests are shown
6) Click "run tests"
7) Verify the test_harness app is build and deployed
Note: the BlackBerry tests will not complete because communication with the simulator is not implemented
TIMOB-8926: Blackberry: Implement proper packaging of blackberry mobile sdk

[Issues Fixed]
TIMOB-8926: Blackberry: Implement proper packaging of blackberry mobile sdk

[Added]
blackberry/tibb/.gitignore
- ignore *.a

[Changes]
SConstruct
- import BlackberryNDK
- fix build_type butchering for clean builds
- build tibb

package.py
- function zip_blackberry
  - only zip the following:
    - .h and .a files for libv8 and tibb
    - tibbapp

blackberryndk.py
- added function buildTibb

[Tests]
Test 1: Build and use mobile sdk
1) Run scons
2) Verify the mobilesdk/win32/2.0.0/blackberry folder only contains what is needed
3) Run scons clean
4) Verify the build files are gone

Test 2: Use the mobile sdk
1) Run scons
2) Extract the sdk so Titanium Studio can use it
3) Open Titanium Studio and create a new project
4) Verify the templates were created properly
5) Run for simulator
6) Verify the app is built, deployed, and run
Made changes based on code review
fixed formatting and change the != to !==
Changes from code review
Merge pull request #48 from dlifshitz-maca/TIMOB-9014_02

TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Issues Fixed]
TIMOB-9014: BlackBerry: Add BlackBerry to drillbit test harness app

[Changed]
tiapp_harness.xml
- added blackberry xmlns

blackberry.js
- function installTestHarness
  - added suite parameter
  - call launchTestHarness
- function launchTestHarness
  - added suite parameter
  - build, deploy, and run the test_harness app
- function runTestHarness
  - pass 'blackberry' to handleTestError
  - set the status to Running
  - pass the suite parameter

drillbitmodule.js
- function initPlatforms
  - fix getting the env vars
- function handleTestError
  - added parameter platform and use 'android' as the default for backwards compatability

blackberryndk.py, builder.py
- use return code

[Tests]
Test 1: Run drillbit
1) Build tibb
2) change simulator IP in builder.py
3) Run scons to build the mobile sdk
4) Run the following command:
drillbit\drillbit.py --platforms=blackberry
5) Verify the tests are shown
6) Click "run tests"
7) Verify the test_harness app is build and deployed
Note: the BlackBerry tests will not complete because communication with the simulator is not implemented
Changes based on code reviews
- Removed check for NULL obj - the obj parameter will never be NULL because it's checked in TiObject.cpp on line 281
- Changed onValueChange to send VALUE_MODIFY_IGNORE up the call chain
- Fixed formatting issues
Merge pull request #51 from jpl-mac/timob-8783

TIMOB-8783 BlackBerry: Implement Global APIs Part 1
Merge branch 'blackberry' into TIMOB-8924
TIMOB-8926: addressed review comments:
- add build looging (and ignore the file)
- rename buildType and output
- removed extra .gitignore
- removed unused variable
- don't include the unneeded .h files in tibb
Merge pull request #42 from dcampbell-macadamian/TIMOB-8924

TIMOB-8924 BlackBerry: setter methods crash runtime