QueryVertex now extends BaseVertex.
Renamed query vertex to result binding query vertex.

Prepares introduction of result counting query vertex.
Added result counting query vertex.
Fixed a test.
First messy implementation of counting queries.