Russia signs major alliance treaty with South Ossetia, pledges military protection