Add JUnit-style output format to run_unit_tests.py.

This patch adds a new output format to the test driver execution script,
which captures test case output, collects results and emits them in a
form that other tools can consume. This mode is enabled by specifying
"--junit=<file.xml>" to the script.