Some further refactoring, added a few comments, etc.
It's not about adding huge chunks of code anymore, and I'm slowly
moving towards getting the details right.
There's still a ton of TODO items, though.
Added static content serving with sane content type detection.
Started working on WebSockets (meanwhile neither SCGI or FastCGI is
finished and almost nothing has been tested).
I'm trying to figure out everything at once, i.e. the entire structure
of the application from top to bottom, trying to converge on a workable
design while refactoring still doesn't hurt as much as it would once
it's established.
- also accept the obsolete application/json-rpc content type
- don't quote regular responses
- don't separate results with newlines
- instead make sure to print a newline upon receiving EOF