make it work with console.log

yo carter!

this does a few things:

- adds support for client side usage w/ browserify 3.0+
- uses `through2` instead of `stream` as `through` works w/ browserify too
- checks if its in the browser and uses `console.log` instead of `process.stdout`

it should still work the same in node