Node.js events.EventEmitter -like API