make tiny-fsm an EventEmitter