The Analytical Foundations of Celestial Mechanics