Adds broadcasting capability and fixes sessions inside socket io