update to latest events code from node.js

- does not include support for domains