The Proto-Magnetar Model for Gamma-Ray Bursts