Wall Street loved what it saw from Amazon this week. Yes, despite the layoffs.