Structure and History of Dark Matter Halos in Galaxies and Galaxy Systems