Beginning migration of mosquitto code to Paho for MQTT.