pubsub demo updated to work with crossbar2