[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.
The API from pull request #1830 and now merged into master expects `q` to either be a string or a JSON encoded dictionary.

So this should be something like:

```javascript
var q = {};
q[filterName] = term + ':*';
query.q = JSON.stringify(q);
```

I can confirm, testing on master as of 28/07/2014 with #1792 merged in, that it does not work without this change. The same applies in `resource-view-filters-form.js`