The retail giant has quietly transformed itself into a digital powerhouse, and in the process has been winning over Amazon's ...