Function ResourceFormatLoader.renameDependencies
If implemented, renames dependencies within the given resource and saves it. renames
is a dictionary { String => String }
mapping old dependency paths to new paths.
Returns constant OK
on success, or an error
constant in case of failure.