Flags flew at half-mast in Beijing on Thursday as China prepared for the funeral of late ex-premier Li Keqiang, a reform-minded bureaucrat who was once tipped as the country's future leader but was eclipsed by Xi Jinping.