Historic agreement paves way for end to Somali bloodshed