Country's two main factions agree to sign national unity government deal at UN-facilitated meeting in Tunisia.