use code instead of stderr, cleanup xunit so it writes all at once to prevent interleaving
===
addressing jons comments
Merge pull request #9 from coursera/eleith-rework-error-capturing

use code instead of stderr, cleanup xunit so it writes all at once to prevent interleaving