Mogadishu has been tentatively emerging from the waves of violence that have rocked the city over recent decades.