added event emitter that enables registering handlers for message, command and individual request. cant get the wrapper to work...