Fixed Tomcat leaving connections open
Fixed Tomcat leaving connections open

Use a thread local to cache the http client.
This was a (temporary?) fix by James.

BOTlibre/BOTlibre,BOTlibre/BOTlibre,BOTlibre/BOTlibre,BOTlibre/BOTlibre