fix flags allowed in /search
fix case sensitivity bug in per-source dummification remarks
added hierarchical search test for whoisrestservices
moved isMain() check to sourceContext; there is likely more place where it is implemented, should also be replaced
fixed test to allow -T with version queries
minor fixes and optimizations