M-theory on Spin(7) manifolds, fluxes and 3D, N=1 supergravity