Modified source of queryFileName, added reportFileNamePrefix.
Move from runWrappedXQueryFile to runXQueryFile. We handle the XQuery
results wrapping manually from the query instead.
Added stack like state for node.