Fixes filtering predicate.
Fixes bug in FeatureController.list()

Method to determine the total number of features was wrong
because it took no account of the second-stage spatial filtering.
Final SpatialQuery refactor.