Preparation for query matching: introduce Regexp + PatternMatch.
Introduce query language (resembling reprepro syntax).