Added send function
Also added new util helper
In addition, the mqtt client is now exposed as a private variable.