The classical Kepler problem and geodesic motion on spaces of constant curvature