UV Luminosity Functions at Redshifts z ~ 4 to z~10: 10,000 Galaxies from HST Legacy Fields