Amazon beat expectations for revenue and earnings for the fourth quarter, but it predicts slower growth in the next quarter.