Fixes #6672: Allow plugins to more easily take advantage of resource loo...

I have not added tests yet as I am looking for some direction and opinions before I proceed further. An example of how this changes can be taken advantage of can be seen here - https://github.com/Katello/katello/pull/4454
Slight behaviour and response change here needs reviewing I think,