Task/395 pagination queries

### Description
Pagination implemented and with rudimentary unit tests.
URI params 'offset' and 'limit' used.
A third URI param 'details' steers whether 'mongo db count' command is issued on no hits.

I understand that changes in lines 1400-1425 is only a EXPECT_EQ reordering. Why is it motivated?