Apb2006/windows

This goes two things:
1) Significant `xquerydoc.bat` improvements .
2) A new o/p format `raw2` is added. This is similar to the existing raw format, but has the simplification and namespace analysis steps applied. This is useful for debugging.