Add a filter action switch.

It executes one of two specified actions based on the outcome of a
Predicate. We use a fluent API for creating the switch. This helps the
user to avoid confusing the two filter actions.