Reworked communication (multiple broker/session/threas), improved model, first MR comments, added simple tests