King Muhammad VI of Morocco has gone on TV and pledged constitutional amendments to provide for greater justice and democracy, including a Prime Minister chosen from the party that wins the most votes, and has also pledged to make Tamazight ("Berber") an official national language.
Whether this is enough and in time I'll leave to someone who knows Morocco better than I. The King has come a long way since his father's day and is young enough and Western enough that he may get it, and be able to surf ahead of the wave. The monarchy has a lot of prestige, including religious prestige, and the King even has the old title of the Caliphs, amir al-mu'minin, Commander of the Faithful. But the Palace also has a huge economic monopoly and there are the usual demographic and wealth distribution issues. But at least he's acting before he's cornered.