Fixes #1366
Fix failure to compile Move the check into the http module Reverted change
Add http module and documention, including fix httpclient bug.