optimized GraphDatabase#query
added promises and test case
Merge branch 'neo4j-2.x' into without-classpath

* neo4j-2.x:
  optimized GraphDatabase#query added promises and test case