[LMP] Direct AN rules matching.

Iterate over rules and find matching items instead of creating matchers for
each media item and comparing them to the matchers in the rules.

3x speedup compared to sequential old version.
Same perf as previous version, parallelized.
Fixes detection of custom media rules with modified field matchers.

For #1751 as well.