Mavenized query-parse subproject

Now the project can be built using Maven and tests are passing.

Added pom.xml file, changes in directory structure and minor code changes.