Senegal is traditionally a beacon of stability in troubled West Africa, but in recent years has been buffeted by turbulence that has at times turned deadly.