Add a listener on the worker to propagate events to the ports
wip
Improve window/worker detection. Fix currentTarget with web workers