Merge pull request #277 from abhijit1234/dev

Enabling to start a session with reusing existing settings and contents folder.
refactoring for the new LMD SDK changes
updating to selenium 2.42.2
cleaning up dependencies
 adding extra servlets command line to the server.
launcher for safari real device
screenshot part of the SDK
removing the tiff to png dependency for ios-driver now that the SDK returns the correct format.
updating submodule to the new SDK
for real device, leave some time ( 1 sec ) for the stop command to be processed, so that instruments terminates correctly.
updating the setup and teardown for real device to use the latest SDK
cleaning up import
JNA initialization should be part of the server start.
A URL can be passed for apps
removing hardcoded SDKs from the server status
various bug fixes for safari real devices
removing the need for safari to be installed in the simulator when running on real device
installed SDK for real device are irrelevant
Escape single-quotes in test-supplied strings.
Merge pull request #280 from iamleeg/escape-quotes

Escape single-quotes in test-supplied strings.
 adding a /wd/hub/manage/stopGracefully to stop the server after all tests are finished
server shuts down and triggers hooks to be implemented for the hub to know about it.