Updates to support paho-mqtt 1.0

Fix for change in on_connect() callback parameters between paho-mqtt 0.9
and 1.0