Bahá'u'lláh endured decades of imprisonment and exile while writing the foundational texts of a new world religion built on unity.