Implements complex query functionality for samples

New API resource /query/samples has been added

Implements: blueprint complex-filter-expressions-in-api-queries
Change-Id: I5b324f390eb3ed63514260683c1576a0fc0cb7af
Merge "Implements complex query functionality for samples"