Actually, this is a serious refactoring of the query log module. The
rest API part is refactored, it's now more clear how the search is
conducted. Split the logic into more files and added more tests.
Closes: https://github.com/AdguardTeam/AdGuardHome/issues/1559