Stocks took a breather from last week’s rally as investors were cautious ahead of a possible Greek default. But we are in the midst of earnings season and optimism over quarterly performance helped prop up the major indexes, especially late in the day.