[core] Generalise return type
[core] document interface
[core] remove the paho package
[core] attach callbacks prior to initial connection
[core] A cleaner implementation of WIP on paho client