Allow user-specified http client.

Closes #1