Gauge conservation laws and the momentum equation in nonholonomic mechanics