Moduli spaces of stable curves, Gromov-Witten varieties, and the quantum K-theory ring