stream document: make the code more simpler.

move the streaming code to couch_stream and make the api more simpler to
get results.