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