Changed commands.js to address deopts in v8
removed event emittier from the message parsing path