Support for W3C events

This pull-request enable support for reconnect-core to work with W3C events, so for example it can be able to work with plain WebSocket objects in browser.