Add Event Emitter methods to an object.