Mozambique's president and a rebel leader signed a landmark peace deal in Maputo on Friday, ending a two-year conflict that has rekindled memories of a brutal civil war.