@staticmethod
def urljoin(*args):
    """
        Joins given arguments into an url. Trailing and leading slashes are
        stripped for each argument.
        """
    url = '/'.join(map(lambda x: str(x).rstrip('/').lstrip('/'), args))
    return url
