Logbuf rewrite

Closes #92.

Docker backend is untested, and logbuf event buffering until a newline is missing.
Test code from the previous implementation.