Add stream settings for logging stdout/stderr

This pull request adds following settings to execute, executeBackground and shell:

* `outputStream` - An output stream for logging standard output.
* `errorStream` - An output stream for logging standard error.