A very narrow victory for incumbent President Ali Bongo has been challenged by the opposition, and led to civil unrest.