A conversation with Homeland showruner Alex Gansa about the ups and downs of a long career in television.