In a new book about Gen. David Petraeus, author and journalist Fred Kaplan looks at how theories of counterinsurgency have shaped U.S. military policy in the conflicts in Iraq and Afghanistan.