Gauge models for spin-glasses