Twenty-nine websites became seven sales channels. Behind that tidy result is a company built for retail’s untidy engineering problems.