Fix crash in node and properly pipe streams.

This also fixes (eh, works around) this issue: https://github.com/joyent/node/issues/7063

writeToStream gained a new argument, 'pipeOptions'. Which are passed to stdout.pipe(stream, pipeOptions). By setting these to {end:true}, it allows fluent-ffpmpeg to close the stream after it's done writing.