Add file filtering plugin capabilities to diff, checkout and status

Adding the filter to status is just a matter of passing the filter through.
For checkout, we also use the `_suggest_bounds` function to narrow
the search.