Moduli of formal torsors