This is the new Loader locate hook API.  metadata is arbitrary; we could pass baseURL through System or through metadata.