CB-7813 - CDVWebViewDelegate fails to update the webview state properly in iOS

CDVWebViewDelegate fails to update the webview state properly in iOS when a page loads an iframe using javascript and does a redirect to another page using javascript. Method didFailLoadWithError gets called while in STATE_WAITING_FOR_LOAD_START with a NSURLErrorCancelled (-999) error. Instead of entering STATE_CANCELLED in this situation it always enters STATE_IDLE, which causes didFailLoadWithError event to never fire (which depending on the app, and definitely in our case, can cause a hang condition).

For a simplified Cordova project that reproduces the problem in the most straigtforward
way possible, please refer to: https://github.com/greatvines/cordova-webview-state-bug-www

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-7813 - Added unit test
CB-7729 - Support ios-sim 3.0 (Xcode 6) and new targets (iPhone 6/6+) (closes #107)

Signed-off-by: Shazron Abdullah <shazron@apache.org>
Increment ios-deploy min version to 1.2.0 and ios-sim min version to 3.0
Update cordova/lib/list-emulator-images for ios-sim 3.0
Remove "Valid values for --target" in script headers. Use "cordova/lib/list-emulator-images" to get the list.
Add support for the iPod in cordova/lib/list-devices script.
Remove non-working applescript to start emulator, use Instruments to start iOS Simulator now.
Fix cordova/lib/list-started-emulators for Xcode 6
Fix cordova/lib/install-emulator to pass in the correct prefix for ios-sim --devicetypeid
Add ios-sim version check (3.0) to cordova/lib/list-emulator-images
Suppress output of cordova/lib/start-emulator for harmless message (we don't need to specify a template to Instruments)
CB-7818 - CLI builds ignore Distribution certificates (closes #114)

Fixed build / xcconfig defaults for CI environments. "cordova build -…
…-device --release" now builds using the "iPhone Distribution"-type profile, as opposed to the default "cordova build --device", using the default "iPhone Developer"-type profile.

Re-added build.xcconfig as shared .xcconfig for legacy compatibility. Implemented Configuration-level .xcconfig selection via inheritance. Added ASF comment section, short documentation.

Signed-off-by: Shazron Abdullah <shazron@apache.org>
CB-7597 - Localizable.strings for Media Capture are in the default template, it should be in the plugin
Remove unused code, also pre-iOS 4 only code
CB-7606 - handleOpenURL handler firing more than necessary

- plus style fixups through uncrustify