As Tories stumble, Labour quietly prepares for office