General assembly of galaxy halos : structure, origin and evolution