AMENDED AND RESTATED CREDIT AGREEMENT dated as of July 31, 2013