Iran prepares for Ayatollah Ali Khamenei's state funeral as the region watches amid fragile ceasefire and heightened security.