Abide by the Law and Follow the Flow: Conservation Laws for Gradient Flows