update resolvers so they handle runtimeConfig filters

This pull request updates the ResolverInterface so all methods now handle a $runtimeConfig array.

This result of this is that we can now render the direct path to the runtimeConfig image rather than using the router to generate a path every single time (which is slow).

This PR closes #489 and fixes #465


Actually, this may be resolved more easily than I thought. I will push a different method in a moment.