Refactored uiautomation tests.

Results when running locally: Tests run: 223, Failures: 18, Errors: 0,
Skipped: 1
Refactored BaseSeleniumTest.java
Fixed offset calculation for hybrid apps in iOS 7.
Increase registerUIAScript timeout to 30 secs for slow VMs.
Merge branch 'dev' of https://github.com/ios-driver/ios-driver into dev