Amended and Restated Rights Agreement by and between Teekay Corporation and The Bank of New York Mellon as Rights Agent Dated as of July 2, 2010