Rework the getMediaPublicUrl method (use a WebService to retrieve the configured public endpoint root)