Fix tests and add transformation function

* This fixes the tests to not tamper with stdout (allows console.log to come in between, allows more fine-grained checks on output, allows more sophisticated mocha reporters). It uses proxyquire now, to replace the `gulp-util` dependencies with a sinon stub
* This adds an option `transform` that can be used to transform the debug output as the user wants to.