Implement a 'count' endpoint for REST resources.

Currently this is done via a small change to the Query class and lots
of copy and pasting. TODO: extensively refactor the REST resource
classes to reduce boilerplate.
Merge branch 'master' of github.com:mikesname/neo4j-ehri-plugin into merge_tip