In his most extensive remarks on the future of the American military, Sen. John F. Kerry said here Thursday that he would expand the active-duty Army by 40,000 soldiers, including a doubling of U.S. Special Forces; speed development of new technologies and equipment to meet threats posed by terrorist networks; and better integrate the National Guard into the nation's homeland security strategy.