Rerun tests several times if simulator fails to start. Log simulator error.

Sometimes simulator or test host app fails to run. Let's try several times to run before reporting about failure to callers. Before each attempt we are killing simulator.
Also we are now logging error which simulator returns in such cases.
Merge pull request #351 from facebook/nekto/rerun_tests_if_fails

Rerun tests several times if simulator fails to start. Log simulator errors.
Refactor test suite event state to support errored tests and publish full statistics to reporters.
Publish suite events to reporterts in OCTestSuiteEventState and test events in TestRunState rather then in OCUnitTestRunner.
Continuer running tests after one of the tests crashed.
Merge pull request #318 from facebook/nekto/refactor_test_suite_event_state

Refactor OCTestSuiteEventState. Move publishing of events to reporters from OCUnitTestRunner to OCTestSuiteEventState and TestRunState.
Merge pull request #304 from facebook/nekto/continue_testing_after_crash

Continue testing after crash.
Add new option `-resetSimulator`. Reset simulator if (un)installation fails.

New option tells xctool to reset iOS simulator content and settings and restart it before running every app test run.

Sometimes iOS simulator fails to install or uninstall test host app. If that happens we were retrying 3 times before failing, now we are additionally resetting simulator content and settings folder after each attempt.
Merge pull request #353 from facebook/nekto/clean_sim_folder

Add new option `-resetSimulator`. Reset simulator if (un)installation fails.
Update Version.m
Make it clear Xcode 5 is required
Add user notifications reporter which sends notifications to NSUserNotificaitonCenter after an action succeeded or failed.

Examples of notifications:
https://dl.dropboxusercontent.com/u/6872784/tmp/xctool/xctool_notification.png
https://dl.dropboxusercontent.com/u/6872784/tmp/xctool/xctool_notifiction_center.png
Add new flag to run-tests/test action: `-listTestsOnly`

Sometimes we want just to get list of tests that are going to be run and don't actually run them. This flag will simulate testing and return "success" for all tests as if they were run and passed.
Merge pull request #346 from facebook/nekto/add_notifications

Add user notifications reporter which sends notifications to NSUserNotificationCenter after an action succeeded or failed.
Update Version.m

Bump version as 0.1.15 is already released.
Merge pull request #356 from facebook/nekto/add_list_tests_flag

Add new flag to run-tests/test action: `-listTestsOnly`
Add install action.
otest-query: when we dlopen, use RTLD_LAZY instead of RTLD_NOW.

Summary:
This fixes an issue I'm seeing... where a framework referenced by my
tests actually references a symbol that does not exist.

Because of this, I'm getting ...

```
Failed to query the list of test cases in the test bundle:
dlopen(/var/folders/v2/b9w9xt6j1n79c8qjxhkvftmc000xbj/T/build-outputYYP4rr/Products/Debug/IntegrationTests.xctest/Contents/MacOS/IntegrationTests, 2): Symbol not found: _SecCertificateGetSHA1Digest
  Referenced from: /Applications/xcode_5.1.app/Contents/Developer/../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
  Expected in: /System/Library/Frameworks/Security.framework/Versions/A/Security
 in /Applications/xcode_5.1.app/Contents/Developer/../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation
```

In the above case, DVTFoundation references `SecCertificateGetSHA1Digest`, and
that symbol is supposed to be in Security.framework, but it's not (at
least on OS X 10.8)

By switching to RTLD_LAZY, dyld won't bother binding every single
function, and we'll never encounter the error.

There shouldn't be any negative consequences by this change - we're just
delaying the binding.  In fact, I wonder if it'll make otest-query a
little faster since we'll skip binding.

From the dyld man page --
```
   RTLD_LAZY   Each external function reference is bound the first time the
               function is called.

   RTLD_NOW    All external function references are bound immediately during
               the call to dlopen().
```

Test Plan:
With this patch, I ran xctool against my project and it now works.
Merge pull request #360 from ianyh/master

Add install action.
Added support for -resultBundlePath argument to xcodebuild.