Amazon closes out trading as the world's biggest publicly-traded company for the first time, overtaking Microsoft and other fellow tech behemoths.