HTTP test helpers refactoring.

Mostly mechanical.
Introduce DoRequest params.
s/expectCode/expectStatus/ in tests.
Make AssertJSONCall also check the response content type.