American's longest conflict was never formally declared a war and was paid for with borrowed money; amid the carnage, infant mortality dropped and literacy climbed