Correctly decode the logs stream and support stdout/stderr filtering

Fixes for logs decoding to correctly work with API v1.6. We need access to the undecoded binary HTTP response, hence the changes to the `_result` method.