Add QueryResultSelection hooks

- `SMW::Store::selectQueryResultBefore` can be used to implement a QueryCache
- `SMW::Store::selectQueryResultAfter` can be used to implement a UsageTracker