REGISTRATION RIGHTS AGREEMENT BY AND AMONG DYNEGY INC., THE SUBSIDIARY GUARANTORS PARTY HERETO and Goldman Sachs & Co. LLC as representative of the Initial Purchasers (as defined herein) Dated as of August 21, 2017