Multiple changes to improve ios-driver when for Mobile Safari on a real device.