Implement filtering.

This takes advantage of the fact that OpenBadger will have filtering
at the API level once mozilla/openbadger#209 lands.