Senegal, a major exporter of fish and peanuts, has had three largely peaceful transitions of power since independence from France in 1960.