normalize headers and body
This will now force all incoming headers to be all lowercase, so response functions that assumed they were in some capitalized format need to be updated. This also now passes application/json bodies as a JS object rather than as a base-64 JSON string.