Adding filter transformer and tests.

Remove this comment - cannot access the document, possibly add a TODO to document the design and API.