Fix #304 Too many open files

As the HttpClient's handler is not shared anymore, we need to ensure that the HttpClient is disposed after done using it.
Merge pull request #306 from couchbaselabs/issue-304

Fix #304 Too many open files