Iran does not have too many friends these days, but in a far corner of the Caucasus, on the edge of Europe, it is forming a special relationship.