Logbuf rewrite + specify number of log lines to return

Closes #133, closes #92.

Docker backend is untested, and logbuf event buffering until a newline is missing.
```go
var w io.Writer
switch data.Stream {
case 1:
    w = req.Stdout
case 2:
    w = req.Stderr
}
...
````