Add support for per-collection filters.

Addresses #39