Libyan factions sign an initial an election pact, but divided institutions and deep legal gaps threaten its execution.