`zerovm_query` HTTP responses: bug fixes and clarification

I was reading through the `zerovm_query` code, and I found a couple of things which might be bugs. The branch is a work in progress, and I need some feedback.

I've added inline comments to detail my questions. Please have a look.