The fracton gauge principle