Added support for specifying arguments and environment variables when
launching on device and in the simulator.