AMENDED AND RESTATED CREDIT, SECURITY AND GUARANTY AGREEMENT, dated as of August 3, 2015, by and among