Baryon oscillations as a cosmological probe