A client-side translation of Node's EventEmitter.