José Mário Vaz elected, restoring constitutional order after a 2012 military coup.