Implement MQTT protocol

needs code cleanup, build system integration, ...