optimizations
renamed name to protocol for messages
Intergration with Paho MQTT lib