publish json_decode()

for use in http.c and elsewhere
process and return http headers as well as body

Post-process body contingent on content-type; e.g. "text/json"
decodes JSON body to s-expr.