Rename cycle-modes middleware to mode-selector.
Implement mode autocycling.