simple, fast impl of node's event emitter