Devoted followers of the Ayatollah began a 40-day mourning period, while his critics took to the streets to celebrate.