pubsub-modules added

JS modules using pub-sub pattern. Just the most basic functionality,
without channel/message filters or similar more advanced features.