Experimenting with retrieving api definitions in client constructor. Not working for test clients on port 14000. See comment in client.js line 71