Add generic HTTP request method

	modified:   lib/http.js
	modified:   test/http_test.js