Deformation theory from the point of view of fibered categories