Fix NPE

Fixes https://github.com/appium/appium/issues/628
Merge pull request #632 from bootstraponline/fix_npe

Fix NPE
updated appium-io
fix bad use of path.resolve to make prefs test work
add a test for window handles idempotence
fixing some android tests
bump apidemos
fix issue where we would write to remote debugger socket after destroying it
make this test more robust
Updated troubleshooting docs to reflect changes in the Android SDK 22
Merge pull request #637 from mutualmobile/update_android_docs

Updated troubleshooting docs to reflect changes in the Android SDK 22
Fix ADT 22 path

Fixes #638
Merge pull request #639 from bootstraponline/adt_22

Fix ADT 22 path
have reset.sh uninstall android apps and selendroid packages to make sure we get fresh ones on device
revert change in e7e21577b9565d189b28a861d8f28c15d849dc72, it was right before
make sure element.js gets linted too