Armenian and Azerbaijani officials said on Thursday that they had agreed the text of a peace agreement to end nearly four ...