Data-Driven Focusing And Two-Way Wave Modeling With Applications To Seismic Processing And Imaging