XQuery support

Sample how to integrate XQuery support.
Merge branch 'wip' into refactoring