demo

added MQTT demo instances and fixed pub/sub control bug in MQTT