Decades of hostility between Iran and the US were preceded by a little‑remembered century‑long friendship