In the course of just a few weeks, good relations with neighbors have become a matter of basic survival for Yemen's President Abdu Rabu Mansour Hadi.