Saints agree to contracts with Hartley and Thomas