A Schrodinger approach to Newton-Cartan and Horava-Lifshitz gravities