AWS: fix AJAX RPC calls when the server is proxied with a prefix.

RPC request used an absolute URL, which doesn't work when server is accessible with a prefix (e.g. http://myserver/admin/).