The next generation Virgo cluster survey. VI. the kinematics of ultra-compact dwarfs and globular clusters in m87