Output JUnit XML from automated test runs

Add a new default option to write JUnit XML formatted results. JSON or XML selection is based out output file extension.

This change helps support a temporary fix for #3343. My plan for Jenkins is to create separate jobs for unit, extension and integration suites and store those results in Jenkins as XML.