Reworked modelling of events, channels and publish/subscribe
fixed a bug in contacts group