Correctly decode the logs stream and support stdout/stderr filtering

Fixes for `client.logs()` to correctly work with API v1.6 streams. We need access to the binary, undecoded HTTP response, hence the changes to the `_result` function.