[ADD] XQuery: QueryResource interface, called after evaluation of query:
      http://docs.basex.org/wiki/Java_Bindings#Context-Awareness
[MIN] XQuery: various refactorings