AMENDED AND RESTATED SECURITY AGREEMENT Dated as of August 28, 2008 among STONE ENERGY CORPORATION and the other Debtors parties hereto in favor of BANK OF AMERICA, N.A., as Administrative Agent