Better window handling and use UUID when matching devices.

Better window handling in ios-driver. (1) Make getWindowHandles() work when instruments is not available. (2) Make ios-driver robust to running in Safari when it has already-open tabs.