Fix activity detection

The old logic was completely broken.

The pkg must not be prepended to the activity. This is invalid.
shell am start -n
com.thehomedepot/com.thehomedepot..Foundation.Controller.SetServicesActivity

The activity must not have the first bit chopped off. This is invalid:
Foundation.Controller.SetServicesActivity

The correct command is adb shell am start -n
com.thehomedepot/.Foundation.Controller.SetServicesActivity

Notice there's no prepended activity and that the string after the / starts with
a "."

Fixes #782
Selendroid is unable to start some apps
Fix Cannot read property 'value' of undefined
Fix selendroid start

Wrong:
adb shell am instrument -e main_activity
'com.thehomedepot..Foundation.Controller.SetServicesActivity'
com.thehomedepot.selendroid/io.selendroid.ServerInstrumentation

Fixed:
adb shell am instrument -e main_activity
'com.thehomedepot.Foundation.Controller.SetServicesActivity'
com.thehomedepot.selendroid/io.selendroid.ServerInstrumentation
Merge pull request #785 from bootstraponline/782

Fix activity detection
Set max buffer to Math.pow(2,19)
Merge pull request #774 from bootstraponline/max_buffer

Set max buffer to Math.pow(2,19)
Added support for locking the IOS device for a number of seconds.

Removed unused code
Merge pull request #795 from mutualmobile/ios_lock

Added support for locking the IOS device for a number of seconds.
Added support for backgrounding the IOS application for a # of secs
Merge pull request #794 from mutualmobile/ios_background

Added support for backgrounding the IOS application for a # of secs
look for ~/.profile in sysExec()
add troubleshooting note for MacPorts
Merge pull request #800 from herzbube/macports-troubleshooting-notes

add troubleshooting note for MacPorts
Merge pull request #799 from herzbube/use-profile-in-sysexec

look for ~/.profile in sysExec()