Sudan’s ruling military council and an alliance of protest and opposition groups have signed a political accord on a three-year transition towards elections.