CIA Director David Petraeus resigns, cites extramarital affair.