Added Tomcat server support and BaseX API files.