MDL-30740 repository: filter() declared static

This reflects its implementation and allows its to be called
outside of repository instances.
MDL-30740 skydrive: filter on accepted_types

So that only images are displayed in the image picker.

Also tighten up the include - thanks Fred.