TRI-VALLEY CORPORATION and Wells Fargo Bank, N.A. Rights Agent RIGHTS AGREEMENT Dated as of December 1, 2009 With Amendments Dated May 14, 2010