Merge pull request #23 from zalora/wip_client-tests

better client code with decent error handling and tests
make QueryFlag more permissive
client tests: QueryParams