Two-dimensional gravity and nonlinear gauge theory