Wrapper function which handles proxying of URLs via the portal server.

Making your day a little bit brighter, one less global variable at a time.