The cloud and artificial intelligence build-out will likely decide where the e-commerce giant's stock goes over the next few years.