Always trim test output
Force a consistent order for stdout and stderr tests
Listen on child_process close event instead of exit

On Node 0.8.x, listening on 'exit' causes data to be dropped sometimes.
Allow varying expected test output by Node.js version
Capture timeouts as errors on Node v0.11.x