 The two main rival Palestinian factions, Hamas and Fatah, plus dozens of other small groups, signed a declaration in China supporting the formation of a new unity government and to potentially oversee reconstruction in post-war Gaza.