The M87 Globular Cluster System. I. Dynamics