feat(hashlib): output to ostream
feat(demo): json streaming

No longer stages all json in memory.