Merge pull request #1 from facebook/feature/clean-sim-and-install

adding -freshSimulator and -freshInstall options for test and run-tests.
for 'message' events, don't add an extra newline.
make sure XT_IOS_SDK_VERSION* always chooses a 5.0+ SDK version.

We depend on some 5.0+ APIs (like NSJSONSerialization) so builds will
fail if we choose an old SDK like 4.3.

Tested by adding a fake SDK to...

```
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs`
```

... with a fake `SDKSettings.plist` that pretended to be a 4.3 SDK.
Then, verified that build.sh still chose 5.0 instead of 4.3 for
XT_IOS_SDK_VERSION.
fix issue where iOS application tests sometimes don't start.

We use iPhoneSimulatorRemoteClient.framework to kick the simulator and
start iOS application tests.  We ask iPhoneSimulatorRemoteClient to
start the TEST_HOST app for us and then we insert the test bundle via
DYLD_INSERT_LIBRARIES.  For some reason iPhoneSimulatorRemoteClient does
not reliably set the app launch environment if the app is being freshly
installed.

This workaround makes it so that we always install the TEST_HOST app
once before we try and run it.  By doing this way, the app launch
environment seems to get set right every time.
remove 'mobile-installation-helper-Info.plist' from copy bundle resources.
removing 'Tools' dir.
in otest-shim, swizzle SenTestLog the same way for app + logic tests.

otest-shim used to have some clownly looking logic to decide when to
swizzle.  It had different paths for app + logic tests, since the test
bundle (which links SenTestingKit) gets loaded differently for each
case.  This fixes it to use the same path for both cases.

Tested with:

```
./xctool.sh -workspace xctool/xctool-tests/TestData/TestWorkspace-Library/TestWorkspace-Library.xcworkspace -scheme TestProject-Library -arch i386 -configuration Debug -sdk iphonesimulator test
```
... for application tests, and...

```
./xctool.sh -project xctool/xctool-tests/TestData/TestWorkspace-Library/TestWorkspace-Library.xcworkspace -scheme TestProject-Library -arch i386 -configuration Debug -sdk iphonesimulator test
```

... for logic tests.
fix issue where run-tests -only might run only the disabled tests.

If you had disabled some test classes in a scheme and then used -only to
run that test target, it was running only the disabled tests.

Tested by...

Adding a new DisabledTests test class to TestProject-Library and
unchecked it in the scheme.  Then ran...

```
./xctool.sh -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library -arch i386 -configuration Debug -sdk iphonesimulator run-tests -only TestProject-LibraryTests
```

... and verified it ran the non-disabled tests.

Also checked that you could still run the disabled test if you really
wanted with...

```
./xctool.sh -project xctool/xctool-tests/TestData/TestProject-Library/TestProject-Library.xcodeproj -scheme TestProject-Library -arch i386 -configuration Debug -sdk iphonesimulator run-tests -only TestProject-LibraryTests:DisabledTests
```
make otest-shim use dyld hooks to wait for SenTestingKit to load.
Merge pull request #2 from facebook/fpotter/otest-shim-cleanup

in otest-shim, swizzle SenTestLog the same way for app + logic tests.
Merge pull request #3 from facebook/fpotter/fix-run-tests-only

fix issue where run-tests -only might run only the disabled tests.
Fix scheme misspelling.
Merge pull request #4 from adamyanalunas/master

Fix "sheme" misspellng
don't crash if ~/Library/Logs/DiagnosticReports does not exist.

This was pretty bad - xctool would actually crash if this directory
didn't exist (meaning you had no crash reports on your system).

Fixes issue #11

Tested with...

```
./xctool.sh -workspace
xctool/xctool-tests/TestData/TestWorkspace-Library/TestWorkspace-Library.xcworkspace
-scheme TestProject-Library -configuration Debug -arch i386 -sdk
iphonesimulator test -only TestProject-LibraryTests
```
Merge pull request #14 from facebook/fpotter/dont-crash-when-there-are-no-crash-reports

don't crash if ~/Library/Logs/DiagnosticReports does not exist.
adding TOC in README
adding some notes about the Facebook CLA in README
make tests pass now that TestProject-Library has disabled tests.

In e071d39849, a new test class got added to the scheme but it's
disabled.  So, we'd expect the SenTest args to change.
let's call it v0.1.0 and you can print the version with -version

Homebrew requires versioning (see issue #8)
Add an archive action