The online sales juggernaut hopes to combine fulfillment networks for its business and stores into a single delivery platform as it lags behind rivals.