Fix plumbing of --disable-proxy/ENABLE_PROXY

We had a command-line flag and config setting to disable use of HTTP(s)
proxies, but it wasn't properly plumbed through to the API transport.

Testing done:
* Ran unit tests.
* Added some debug code to check that the value was getting through correctly.

Reviewed at https://reviews.reviewboard.org/r/5747/