events: implement EventEmitter#getMaxListeners()

fixes https://github.com/joyent/node/issues/8237
Yeah, I was thinking about that. It will return `Infinity` if you have done `setMaxListeners(Infinity)`. But it is documented that `0` means unlimited and I think being concise with existing api is best.