[WIP]Add filter interface to any filterable resource view

Currently, the only way to add filters to resource view is when they're inside a `ckanext-dashboard`. Ideally, we could add these filters anywhere a filterable resource view is displayed.
Thanks, I fixed this by your suggestion, but that made me find another issue: #1870.