Add apple.py, a reimplementation of fruitstrap.c in Python.

Installs, uninstalls, lists, and runs applications on a non-jailbroken
iOS device connected to an OS X machine.

gdb was no longer working for certain applications, and this was easier than
figuring out how Xcode makes LLDB talk to a remote iOS debugserver.

* Has support for basically all of the same features as before, in addition to
  uninstalling and listing applications.

* Talks directly to the remote debugserver, so that running is not sensitive to
  differences in debuggers, finding symbols, ...

* Can possibly be made to work on Windows without too much effort.
Add Windows support for most operations.

AMDeviceMountImage doesn't seem to be available in MobileDevice.dll on
Windows.  That is the only feature that should be missing.

I believe that all of the necessary dependencies are installed as part
of iTunes, but it's possible that the iPhone Configuration Utility is
necessary.  I think a 32-bit python.exe is currently required.
Connect and disconnect as needed to avoid timing out.
Slightly better debugserver packet parsing.
Typo.
Fixed a GDB packet parsing bug.
Merge branch 'master' of git://github.com/ghughes/fruitstrap
Merge branch 'master' of git://github.com/unprompted/fruitstrap
Changed IOS_SDK to 6.1
Discovery of DeviceSupport path can now cope with build numbers in the path that differs from the device's build number.
xcode path will now only be looked up once and then cached.
DeveloperDiskImage.dmg will now be searched for in the DeviceSupport directory previously found.
Changed command line options help to multiline and added descriptions and -d and -v options.
Added --nostart command line option to prevent GDB from starting the app (no 'continue').
Don't use setpgpid() to set child's process group since it seems to close stdin for the child making it impossible to send commands to GDB over stdin. Instead both parent and child will register for the SIGTERM and SIGINT signals and both will send SIGTERM to the their common process group (pgid 0) when signaled.
Fixed problems in optstring passed to getopt_long(). Some of the options that take no argument were listed as taking an argument.
Disable buffering of stderr too when --unbuffered is specified.
Don't load symbols from dynamic libraries at startup. If we do executables built with RoboVM take ages to start.
Fixed type in options (gbdargs => gdbargs).
Proper output of ds_path and img_path when verbose=true.
Removed all loading of shared libraries to speed up gdb startup.
Disabled uuid check of shared libs.
Merge remote-tracking branch 'ntherning/master'

Conflicts:
	Makefile
	fruitstrap.c