Defines PubNub setup separately, for easy changes.