improved logging; PubSub.publish optional callback; added PubSub js library to gem