Move strip ansi stream into share utility file

It will be used in tests for the error detail reporter
Add error detail reporter

It's a reporter that prints out a list of detailed info about the
failing tests after the suite has run.
Use the error detail reporter in test.js