Considering the social and political context of ancient Israel, what was the primary function of the kinsman-redeemer (goel) as depicted in the Book of Ruth, and how does this concept relate to broader themes of justice and covenant loyalty in the Old Testament?