After years of delays, South Sudan is for to hold elections in December, despite the nation being on the brink of civil war.