modules/http_client: add json_get and json_post functions
modules/http_client: fix json_get definition, fix timeout type
scripts: use json_get instead of http_get where appropriate