Refactor http module to use Ctor.prototype.func. Fix failing HTTP tests.