Cometary Orbital Dynamics and Astrometry