Streaming REST API.

(and some minor crap in the responses to make the java client happy)

cbugg: close bug-444