Handle emulated events on 'window' (Fixes #535)

Take two for #738, pulling on the `dev` branch this time.

Checks for events on `window` if they cannot be found on the node itself. This is only known to happen when Chrome emulates touchscreen mode - Events like `"ontouchstart"` work with `addEventListener` in that mode but do not appear as properties on the nodes themselves, only on `window`.