Working MQTT Gateway


Ironed out kinks discovered when running with test clients.