More info on Rafsanjani's probable role going forward. It appears that he's obeying the classical strategic dictum: ignore the prince, go after the king. The necessary move is to realign the oligarchy that runs the country, and then find ways to open up to the outside world after the manner of China.
Reports from the BBC also indicate that the Revolutionary Guards hierarchy understands the fluid nature of the current political solution in Iran, and are searching for ways to do a kind turn for Westerners in preparation for a possible realignment.
So, as things look worse in the near term, particularly at street level, it looks like there are some positive indicators for the long run.