Add ability to dynamially select a content encoding, based on arbitrary criteria using predicates
Add test for caching combined with content encoding