The mood in the stock market by the end of last week was the type of stuff that contrarian investors dream about.