Whittaker patterns in the geometry of moduli spaces of bundles on curves