The flaring hostilities between Armenia and Azerbaijan reflect decades of animosity over a mountain region, but the consequences could be far wider.