Spaces of dihedral covers of curves and their irreducible components