Logbuf rewrite

Closes #92.

Docker backend is untested, and logbuf event buffering until a newline is missing.
And no, we haven't tested it out, because of #282, `flynn log` is broken for the docker backend on master...