Add some robustness

* Response to Ctrl-C
* Detect end of request stream
* Use bytearray() when receiving chunks