Bug fixes, GZip demonstration in consumeTopic.js

Change-Id: I363306d302b86b2f053b84bb5a0e733178bc97f2