Wire up connect/disconnect events to MQTT connection.