Libya's political rivals have signed a deal aimed at resolving the country's political crisis.They've agreed to hold elections within two years.Al Jazeera's Victoria Gatenby reports.