add dnf.util.group_by_filter()

Useful when one wants to split items of a sequence into two groups depending on
the result of taking each item through a filtering function.
wip