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


Resolvers must not know anything about `runtimeConfig`. The path has to be prepared by CacheManager.