implement rest querying.
implement rest querying.

The rest querying format doesn't require that we escape the inputs or
outputs. For large binary outputs, it is substantially faster because
no encoding has to be done on it.

cloudflare/golibs,cloudflare/golibs,cloudflare/golibs