Clean the app using 'adb shell pm clear <package-name>'.

For a faster reset use 'adb clear' command instead of
uninstall/install every time.
Merge pull request #1316 from paymand/adb_clear

Clean the app using 'adb shell pm clear <package-name>'.
move unit tests into the test/ directory where tests belong
fix typo in mobile web docs
upgrade linter and ignore un-linted files rather than specifying linted files
make some files pass the linter
update safarilauncher steps in reset.sh
cc @snevesbarros
move code into lib/ like a normal node project
get rid of unused and confusing instruments example
move helper jars to a more reasonable place
update gitignore and npmignore with new directory structure
move server-related stuff into lib/server
move more functionality into server/
put devices in their own place
move logic common to devices into devices dir
grid register belongs with server
device-state not device_state
move some helper scripts into bin/
move authorize-ios into bin
move appium bin into bin/