Improve HTTP server generated content logic

Support generated content with an unspecified Content-Length.  Generator
functions return 1 if there is more content to come, and 0 if they have
just produced the last piece of content.
Add strbuf JSON helper functions
Implement HTTP /restful/rhizome/bundlelist.json

Only tested for one bundle.