Todd Golden agrees to two-year extension