resourceloader: Add getConfig() method to ResourceLoaderContext