getQuery() now takes Resource parameter, not URI
Sitemap shortened and fixed for &mode= URIs
XSLT refactoring: introduced layout.xsl, fixed local.xsl/external.xsl import precedence