HTTPResponseStream cleanup

Wrote tests
Bugfix