Fix #13: implement chunked encoding in responses