Output XML to callback

First parametwer of JUnitXMLReporter constructor now also accepts a
callback function in which case the resulting XML of the test string is
passed as the only argument to the callback function instead of being
written to a file