Geometric invariant theory of syzygies, with applications to moduli spaces