Gamma-Rays from Accretion Processes and Relativistic Beams