Added Broker class and made session dispatch data event.