Fix for eventemitter on nodejs

We were firing off way too many events with the eventemitter.
Fix things up a little bit so that we get bean to use a single
event emitter.