Catch exception

command.getElement() may return null. Appium must catch exception or it'll crash with a NullPointerException.

Fix #1140
fix steps and duration logic for swipe and flick
Merge pull request #1145 from bootstraponline/catch_exception

Catch exception
Fix screenshotStatus
Merge pull request #1152 from jlipps/master

fix android swipe duration
Android support for meta state on key codes (i.e. long press the back key)
Merge pull request #1155 from mutualmobile/master

Android support for meta state on key codes (i.e. long press the back ke...
Merge pull request #1144 from bootstraponline/fix_screenshot

Fix screenshotStatus
Make sure to pass the variables correctly for 'keyevent'.
Merge pull request #1158 from paymand/fix_for_keyevent

Make sure to pass the variables correctly for 'keyevent'.
Android packages may have underscores

var str = "mFocusedApp=AppWindowToken{41ac2030 token=Token{41797308
ActivityRecord{419b9290 u0 com.example.webviewapp_18_api/.MainActivity}}}";

// undefined
/mFocusedApp.+ ([a-zA-Z0-9\.]+)\/(\.?[^\}]+)\}/.exec(str)
Merge pull request #1160 from bootstraponline/fix_activity_regex

Android packages may have underscores
Adding automatic udid detection to iOS
Merge pull request #1161 from penguinho/udidetect

Adding automatic udid detection to iOS
add another yiewd example
update yiewd example with new yiewd syntax
update yiewd example again
fix apidemos alerts test to use APPIUM_PORT
make sure app cleanup happens synchronously
make running one set of platform tests easier with test.sh