Armenia and Azerbaijan have agreed on the language of a historic peace agreement that could mark the end of decades of conflict between the two