Deformation of Crystals: Connections with Statistical Physics