Output TAP diagnostics in YAMLish for compatibility with tap4j

The output now passes the test of parsing correctly at http://instanttap.appspot.com