Added BaseX queries and REST implementation.