Amazon's holiday-quarter results beat analysts' expectations on the top and bottom lines.