Moduli Spaces for Rings and Ideals