Homogeneity: From Caratheodory's approach to Gibbs thermodynamics