Fix BBM automatic unit test to pass on the first time with latest changes

Fixes blackberry/BB10-WebWorks-Framework#365

Reviewed By: Eric Pearson <epearson@rim.com>
Tested By: Eric Pearson <epearson@rim.com>
Updates the test cases to resolve the issue for multiple directories
invoked from the FilePicker.

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: 
Increase buffer size for compiler output

Reviewed By: Jeffrey Heifetz <jheifetz@rim.com>
Tested By: Rosa Tse <rtse@rim.com>
This introduces new wrappers in automation extension to allow taking a
screenshot and comparing screenshots.

Developers taking screenshots can accomplish it using either the API
providing a path or using the "Take Screen Shot" button provided on the
whitel overlay shown by using "showOverlay()" on the automated spec
runner page.

If the button is used then developers can grab this newly taken screen
shot using new jake task. jake grab-image[ip,file-name] where file-name
is the name you want to name the file in the repo. The file is then
copied to test/data/automation/ReferenceImages.

For comparing images only the name of the image needs to passed in and
the current screenshot is compared against an image with that file name
on device under /accounts/1000/shared/misc/PuppetMaster/ReferenceImages.

To make this process more convinent for developers it augments new agents to the jake deploy-automation.
Namely automation-interface and PuppetMasterAgent have been added to the
jake task. It also copies all reference images from the repo to device.

Take away -
* use jake deploy-automation
* wait a few minutes and deploy your app and now you can take and compare
  screenshots.
* use jake upload-ssh-key to avoids crazy number of password prompts.
* Must restart the device the first installation of the agents.

Reviewed By: Bryan Higgins <bhiggins@rim.com>
Tested By: Brayan Higging <bhiggins@rim.com>
Adding a toast API to WebWorks + Test App for both complex and simple toast types.

Adds automated tests for toasts using the automation framework by
comparing screenshots and using clicks to dismiss the toasts.

Fixes Issue: blackberry/BB10-WebWorks-Framework#326

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Changed the ui.dialog to new object return

Fixes blackberry/BB10-WebWorks-Framework#354

Reviewed By: Jeffrey Heifetz <jheifetz@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Shows the higest precedence IP address instead of showing the lowest
priority IP address.

The tests had to be cleaned up because the spies were hanging around by
the time they got to the lib/framework tests.

Take away -
Don't just delete the window object, if you add GLOBAL.window.qnx then
delete GLOBAL.window.qnx and not just GLOBAL.window.

Fixes blackberry/BB10-WebWorks-Framework#363

Reviewed By: Eric Pearson <epearson@rim.com>
Tested By: Eric Pearson <epearson@rim.com>
Implements blackberry.pim.calendar

Fixes blackberry/BB10-WebWorks-Framework#318

Reviewed by: Eric Pearson <epearson@rim.com>, Jeffrey Heifetz <jheifetz@rim.com>
Tested by: Tracy Li <tli@rim.com>

Reviewed By: Eric Pearson <epearson@rim.com>
Tested By: Tracy Li <tli@rim.com>
Revert "Fixes blackberry/BB10-WebWorks-Framework#238,"

This reverts commit 8783d1ff1cffe902e4cb5b11feace633ecaefa2a.

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>

Conflicts:
	test/unit/lib/policy/whitelist.js
Revert "Removes the distinction between XHR requests and other"

This reverts commit 93952745a68d79a75156ad554a6000f9e0a8bbd5.

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Fixes a bug in the whitelist policy where subdomains of whitelist
entries with ports were missed.

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Fixing a bug in our whitelisting policy where local uri was considered a
match for file uri.

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Updating the webworks whitelisting implementation to remove qnx
callExtensions and make all of the whitelisting test apps pass

Reviewed By: Nukul Bhasin <nbhasin@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Fixes remote function call tests.

They were broken after we moved the read-only fields from
blackberry.app.author etc.. to one XHR called
"http://localhost:8472/blackberry.app/getReadOnlyFields"

These tests were simply not updated at that time.

Reviewed By: Jeffrey Heifetz <jheifetz@rim.com>
Tested By: Igor Shneur <ishneur@rim.com>
Refactored a lot of code to be more awesome