SKHIRAT, Morocco (AP) — Hopes that divided, war-ravaged Libya can pull itself together and fend off advancing Islamic State extremists soared on Thursday, as the country’s rival factions signed a U.N.