Add header declaration for file type

To parse the returned results as XML, the Ajax requires that the MIME
type of the document be 'text/xml'.  Setting the MIME value can be done
with a metadata 'header' statement
Impl XML parsing for log

This commit adds response handling to the JavaScript code to populate the
logBox with (semi) well-formatted detection messages