Historical Foundations of Category Theory: Concepts and Contexts