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