After months of escalating tension following bitterly contentious elections, the president and the opposition leader promised to work together.