Commit Briefs
http: introduce a reswriter; change API accordingly
since it uses a bufio::stream it is limited to 1024 bytes of response, an auto-resizing implementation will follow...
http: don't chunk if it is disabled
HTTP/1.0 doesn't support chunking
import http module
Still very WIP and the current API will be subject to changes, but it's enough to be imported in the main tree.
ev: add signal() to catch signals safely too
Uses the 'self-pipe trick' to catch and process signals outside of the signal environment. A few XXX remains, but this is good enough to hit the tree.