Landau-Zener tunneling in circuit QED: From single-photon generation to the gauging of quantum dissipation