Tripoli government and internationally recognised Tobruk-based congress agree to hold elections within two years.