Adds HttpTool

- code like this was being repeated in several downstream projects.
- therefore include common utility here.
Change code to use HttpTool
HttpTool: incorporate review comments
Merge pull request #1074 from aledsage/refactor/HttpTool

Adds HttpTool