Retailers including Gap Inc. and American Eagle Outfitters are branching out into third-party logistics.