basic pub sub support
Merge pull request #44 from tomaszkubacki/master

basic pub sub support