Direct port of node's EventEmitter with no dependencies, available for CommonJS and browser environments.