Improve: centralise json encode/decode access primarily to provide consistent and compact string content.
Improve: add client unit tests, refactor client to aid testing and flexmock example usage.