Propagating beam frame: A novel formulation for time-dependent radiation and scattering