Merge pull request #16 from jeffljones/master

Allow db queries with 10 fields returned instead of just 9
stacktrace function
output name of file when failing for this reason
Merge pull request #17 from egwynn/master

stacktrace function
okd: Don't use peek to route requests since, on Linux, it may not expose all available data

okd used the MSG_PEEK flag to look at the data available on a socket
without consuming it. If it wasn't enough (i.e. the whole URL hadn't
come through yet) it waited and peeked again later.

On FreeBSD, this works properly with both IP (AF_INET) and local
(AF_UNIX) sockets. On Linux, it will only ever return the first unread
message sent to a local socket. When an SSL connection is proxied
through okssld, okd's peeking at a local socket and the difference
becomes a problem: it might only ever get part of a request line.

There's an open bug against the Linux kernel to make it act like FreeBSD
in this case, but POSIX doesn't require it.

https://bugzilla.kernel.org/show_bug.cgi?id=12323

This change makes okd read normally from the socket and use the `scraps`
field to pass the read data to the websrv.
Merge pull request #19 from jeffljones/master

Improve error reporting of timeouts
Merge pull request #18 from Sidnicious/patch-dont-peek

okd: Don't use peek to route requests since, on Linux, it may not expose all available data
version bump
Handle UTF-8 keys in jsonrpc.py
Merge pull request #21 from airfrog/master

Handle UTF-8 keys in jsonrpc.py
Escape quotes
Merge pull request #22 from Sidnicious/patch-html-escape-quotes

Escape quotes
js_escape function ftw
Merge pull request #23 from egwynn/master

js_escape function ftw
needs to escape single quotes too
Merge pull request #24 from egwynn/master

needs to escape single quotes too
Check for request line too-big-ness later, fix spurious 414s

Sometimes this happens:

1. A small request packet comes in

2. A second (big) request packet comes in. Some of it is URI, the rest
   is not. ::delimit sees it, and is like "holy shit, this thing is too big"
   and throws a 414.

This fix only kills the conn if we go over the limit *and* ::delimit
didn't find a request line.
json2pub function that can fail louder
initialize our bools
Merge pull request #26 from egwynn/master

Fixup http url parsing bug.