PubSub architecture based off of postal.js