events: implement EventEmitter#getMaxListeners()

fixes https://github.com/joyent/node/issues/8237
Btw, I hope someone can tell me if this is the right licence to use now in changing times.