Cleanups

remember when I made snide comments about prototype and big boy JavaScript features? yeah that was me being wrong, thats fixed, also we use the line delineated json module and reexport pouchdb-stream so it's self contained like you wanted.

I also fix the tests and we use a stream that we both write to and then read from so we can avoid fs.