First version, before migrating coding/encoding to String to simplify CmdQuery
Implemented Query. Refactor to improve simplicity with payload/responses.
 Current tests all OK.