allow default options to be modified in constructor

I need to be able to modify the client config options so that I can send requests through a CORS proxy. I've added a test for this situation and the code to actually do it. (Note that there is a failing client test already. That test is fixed in a prior pull request.)