Various tests. None is needed live.
Deleted and moved various test files. Fixes to doc-resources.xsl. Added XQ for listing resources. Added XQ for selecting root XML (from list of resources) and generating resource map for it.