Initial support for pubsub mocking.

Initial commit.
Support for subscribe, unsubscribe.