Added dependency to pubsub and start a pubsub server when xtrace starts