Stock indexes notched modest gains Friday as the market wrapped up its second straight weekly gain. The Dow rose 27 points to 31,458, the S&P 500 rose 18 points to 3,934, and the Nasdaq rose 69 points to 14,095. Investors do not expect the market to move…