Fixed code duplication
Added test/round-trip.coffee
Refactored streaming