Revert "Fix inability to close pipe in "expecting chunk" state"

This reverts commit acc3b1cda216623a2c84d4c27a5ace56d3986639.

This fixes issue #29.
Fixed issue #13
Switched to pipe-style commands
Return end-of-pipe on zero read

This fixes issue #32.
Fixing various issues

- fixed #23, deletes pipe immediately when writer closes it
- fixed #24, server rechunks data into size requested by client
- fixed #25, writer blocks until there is a reader
Added test cases for rechunking
Merge pull request #31 from hintjens/master

Revert "Fix inability to close pipe in "expecting chunk" state"