webserver: add HttpResponse.setBody(json document)

Convenience method.
Add API test suite for recursor