Implemented barebones MQTT client