Restore HTTP functionality

This commit restores the functionality within the HTTP module which
seems to have become broken within the previous commits.

Change-Id: I37296e4b10d32d1b1fe7241d3e8acfb3724fdfcd
Reviewed-on: http://review.couchbase.org/36413
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>