Higher Spin Lifshitz Theory and Integrable Systems