'Build a URL relative to the server base_url, with the given
query parameters added.'

def buildURL(self, action, **query):

    base = urlparse.urljoin(self.server.base_url, action)
    return appendArgs(base, query)
