Cosmogenic Beryllium as a Proxy for Solar and Atmospheric Dynamics