Fix package.json and adjust code to fix new httpClient semantics