Common MQTT Functionality for Erlang