Allow _ in package name

Fix #1311
Merge pull request #1312 from bootstraponline/fix_regex

Allow _ in package name
Added a timeout (2s) for orientation change on Android.

When changing orientation on Android, return error only if
the orientation change has not taken effect after timeout (2s).
Merge pull request #1313 from paymand/orientation_busy_wait

Added a timeout (2s) for orientation change on Android.
Add a call back for socket disconnect so that we wait for socket to fully disconnect before trying to reconnect.
Merge pull request #1314 from snevesbarros/multi-webview-1279

Fix for 1279 by adding call back on socket disconnect.