Smooth markets: A basic mechanism for organizing gradient-based learners