added ToJson trait for MoteMsg
finished string serialization for protocol stuff