TIMOB-9388 Blackberry: implement String.format

Reviewers: DC, Alex

This patch adds the implementation of printf like formating.
It does not cover numbered arguments (coming in future patch).
Also not covered is the use of StringObject in place of String primitives as their use is currently broken in our V8.

CHANGELOG:
- Updated yml files, as stubs exist for all global methods and return undefined, marked then as NYI
- Centralized all exception strings into TiExceptionStrings.h
- Parse the format string and format each token individually
- Implemented unicode support, but the current cascades fonts don't support Unicode characters; will need to be retested later (TIMOB-9397)
- Fixed yml syntax error in ActivityIndicator.yml
- New files:
    - TiExceptionStrings.*

TESTS: On Simulator and Device
- generated and validated apidocs
- Tested each specifiers
- Validated all the modifiers
- Tested badly formatted tokens, calls with no args
- Tested using multiple tokens in the same format string
- Tested the exception throwing
TIMOB-9291: BlackBerry: Generate moc files during the build

[Issues Fixed]
TIMOB-9291: BlackBerry: Generate moc files during the build

[Description]
This patch replaces the old makefiles with one that uses Qt's framework so the moc, etc files are properly generated during the build.

[Added]
Makefile, tibb.pro
- adapted from hellocascades sample from the BBNDK, but modified to build a lib instead of an app

[Deleted]
Makefile
arm/Makefile
arm/a.le-v7-g/Makefile
arm/a.le-v7/Makefile
common.mk
moc_NativeButtonObject.cpp
moc_NativeDropDownObject.cpp
moc_NativeImageViewObject.cpp
moc_NativeListViewObject.cpp
moc_NativeSliderObject.cpp
moc_NativeTextFieldObject.cpp
moc_NativeToggleButtonObject.cpp
moc_TiCascades.cpp
x86/Makefile
x86/a-g/Makefile
x86/a/Makefile

[Tests]
Test 1: Build tibb and an app
1) Run scons
2) Verify the build succeeds
3) Extract the resulting .zip and create a project using project.py
4) Build the app
5) Verify the app gets built
TIMOB-9291: TIMOB-9291: BlackBerry: Generate moc files during the build
- delete "MOC Note" file
- suppress v8 parameter warnings
- remove unsigned < 0 condition
Resolve review comments

- Rename Blackberry to BlackBerry in apidoc
- Rename TiExceptionStrings to TiMessageStrings and added Msg namespace
- Add prefix to macros
- Removed unnecessary HandleScope
TIMOB-9279: BlackBerry: Add --blackberry-device and --blackberry-password to drillbit

[Issues Fixed]
TIMOB-9279: BlackBerry: Add --blackberry-device and --blackberry-password to drillbit

[Changes]
drillbit.py
- added usage

blackberry.js
- function BlackBerrySimulator
  - store the blackberry args
- function createDeviceManagementProcess
  - replace the unused args with the used ones
- functions isTestHarnessRunning, pushTestJS, launchTestHarness, killTestHarness
  - use the builder process instead of devicemanagement

builder.py
- functions __init__, __name__
  - add useLogFile param to direct output to log file or stdout based on the command
- function run
  - move the package name to a reusable function getPackage
- added functions terminateApp, isAppRunning, printExitCode, getFile, putFile, appLog
- function __name__
  - added usage, options, and handling for the new commands

devicemanagement.py
- use optparse instead of argparse
- move package-related commands to builder.py

[Tests]
Test 1: Run drillbit
1) Run scons to build the mobile sdk
2) Run the following command:
drillbit\drillbit.py --platforms=blackberry --blackberry-device=<ip address>
3) Click "run tests"
4) Verify the test_harness app is built, deployed, and run
5) Verify the logs are printed
Note: The test will fail because some things aren't implemented
Merge pull request #72 from jpl-mac/timob-9388

TIMOB-9388 Blackberry: implement String.format
TIMOB-9279: BlackBerry: Add --blackberry-device and --blackberry-password to drillbit

fix usage and required
Merge pull request #78 from dlifshitz-maca/TIMOB-9279_02

TIMOB-9279: BlackBerry: Add --blackberry-device and --blackberry-password to drillbit

[Issues Fixed]
TIMOB-9279: BlackBerry: Add --blackberry-device and --blackberry-password to drillbit

[Changes]
drillbit.py
- added usage

blackberry.js
- function BlackBerrySimulator
  - store the blackberry args
- function createDeviceManagementProcess
  - replace the unused args with the used ones
- functions isTestHarnessRunning, pushTestJS, launchTestHarness, killTestHarness
  - use the builder process instead of devicemanagement

builder.py
- functions __init__, __name__
  - add useLogFile param to direct output to log file or stdout based on the command
- function run
  - move the package name to a reusable function getPackage
- added functions terminateApp, isAppRunning, printExitCode, getFile, putFile, appLog
- function __name__
  - added usage, options, and handling for the new commands

devicemanagement.py
- use optparse instead of argparse
- move package-related commands to builder.py

[Tests]
Test 1: Run drillbit
1) Run scons to build the mobile sdk
2) Run the following command:
drillbit\drillbit.py --platforms=blackberry --blackberry-device=<ip address>
3) Click "run tests"
4) Verify the test_harness app is built, deployed, and run
5) Verify the logs are printed
Note: The test will fail because some things aren't implemented
TIMOB-9291: BlackBerry: Generate moc files during the build

added .PHONY targets
Merge pull request #73 from dlifshitz-maca/TIMOB-9291_01

TIMOB-9291: BlackBerry: Generate moc files during the build

[Issues Fixed]
TIMOB-9291: BlackBerry: Generate moc files during the build

[Description]
This patch replaces the old makefiles with one that uses Qt's framework so the moc, etc files are properly generated during the build.

[Added]
Makefile, tibb.pro
- adapted from hellocascades sample from the BBNDK, but modified to build a lib instead of an app

[Deleted]
MOC Note
Makefile
arm/Makefile
arm/a.le-v7-g/Makefile
arm/a.le-v7/Makefile
common.mk
moc_NativeButtonObject.cpp
moc_NativeDropDownObject.cpp
moc_NativeImageViewObject.cpp
moc_NativeListViewObject.cpp
moc_NativeSliderObject.cpp
moc_NativeTextFieldObject.cpp
moc_NativeToggleButtonObject.cpp
moc_TiCascades.cpp
x86/Makefile
x86/a-g/Makefile
x86/a/Makefile

[Changed]
NativeControlObject.cpp
- removed unsigned < 0 condition

TiObject.h, TiV8Event.h, TiV8EventContainer.h, TiV8EventContainerFactory.h
- suppressed v8 parameter warnings

[Tests]
Test 1: Build tibb and an app
1) Run scons
2) Verify the build succeeds
3) Extract the resulting .zip and create a project using project.py
4) Put a functioning app.js file in the project
5) Build the app
6) Verify the app gets built
7) Run the app
8) Verify the app runs and is functional
Merge branch 'master' into sync_01_2101a385

Conflicts:
	apidoc/Titanium/UI/ActivityIndicator.yml