Further changes to streaming file content to console, improved API for
local writes to console, and better error handling.