Filter out records relating to inactive devices

:Release Notes:
Added filtering out of records for search/find according to the state
of shards, based on whether the related device is inactive.

:Detailed Notes:
Implemented:
- basic implementation of filtering (further optimization available)
- partially tolerance to custom _id
- built into MojDbIsamQuery::getKey so it should affect counts as well
- expecting MojDbShardEngine to use some cache
Tests added:
- a few test for ShardEngine to expose some aspect of its behavior
   (should change either ShardEngine or tests)
- querying with active and inactive shards
Notes:
Possibility of some performance degradation, which needs to be be
   evaluated to determine whether optimizations are necessary.

:Testing Performed:
unit-tests that comes with this commit (under desktop)

:QA Notes:

:Issues Addressed:
[GF-9286] DB8 Ext: Modify query results for search/find from multiple shards

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Change-Id: Ie880b2b5c76685c44382c2bb96908a433d41f82d
Reviewed-on: https://g2g.palm.com/3182
Reviewed-by: Build Verification
Reviewed-by: Roger Stringer <roger.stringer@lge.com>
Tested-by: Roger Stringer <roger.stringer@lge.com>