Implemented Connection as a Writable stream.
Merge pull request #124 from adamvr/fix-121

Connection as a Writable stream