Generic Filter interface

This pull request implements xp-framework/rfc#0098