Divisor classes associated to families of stable varieties, with applications to the moduli space of curves