Astrometric masses of 21 asteroids, and an integrated asteroid ephemeris