misc. gzip bug fixes in httpparser, several critical bug fixes in server

* this thing is a working (but nowhere near compliant) http/1.1 proxy!