feat(filter): enable dynamic filters on resource

let resource define a filter as a callback which can use request specific data to do further filtering.

can be used for private content filtering

@amagdas @mugurrus