def get_references_to(content, name=None, depth=None):
    """Get all references where the given content is a target,
        optionaly tagged with name.

        If depth is mentioned, search for all content from which
        you can reach the given content in less than depth steps.
        """
