Event emitter with glob support on event names, for node and the browser