Added `createClient()`, which takes a javascript option argument.

Implemented `clientFromJsonConfig()` by parsing the input string &
calling `createClient`.  Added a test for a client created this way.