Cosmic Ray Processes in Galactic Ecosystems