Quests are in the Civ4EventInfos.XML and Civ4EventTriggerInfos.XML files. I believe that the triggers for them starting and ending are in EventTriggerInfos. A look through the Events XML folder should provide you with all of the info you need. Sometimes you just have to read the files carefully.