adding HttpDeferred to encapsulate req, res, and deferred pointer in method calls