ported libklio to use libmysmartgrid for communication with the msg api