Radiative Transfer and Radiative Driving of Outflows in AGN and Starbursts