Wave Propagation and Source Localization in Random and Refracting Media