Ali Khamenei's funeral was intended to project national unity, but hardline attacks on the president and Iran's negotiators, the absence of former presidents, and renewed calls for revenge exposed deep divisions within Iran's political establishment.