Optimized looking at progress indicators and fixed a looping error.  Also added a configurable timeout parameter.
Merge pull request #1012 from mutualmobile/master

Optimized waitForPageLoad and added timeout
Appium now reponds to the last command it received when Instruments exits thus it no longer leaves the selenium driver hanging.
TestApp dies when sent to background.  Test added for appium responding to last command when instruments is killed.
Merge pull request #1015 from kinghenry3/timeoutfix

Appium now responds to the last command it received when instruments exits.
add test and fix for isAppInstalled, updated selendroid test app location