Add PubSub support

Implementation of flows (messages, processors and base behavior):

(1) subscription
- SUBSCRIBE
- SUBSCRIBED

(2) publish
- PUBLISH
- PUBLISHED
- EVENT