From retirements to coups d’etat, presidential term limits and opposition candidates winning elections, democracy appears to be making progress