Enhance resource management

Consistently close HTTP connections
Co-Authored-By: JordanP <jordan.pittier@scality.com>
Merge pull request #23 from scality/resource-management

Enhance resource management