Changed from PipedOutputStream to NIO Channels for Gradle output.

PipedOutputStream/PipedInputStream were having occasional exceptions.
Changed to NIO channels source/sink to pipe the output stream into a
core.async channel.

Also reporting the success or failure back to the web.