THIRD Amended and Restated INVESTOR AND REGISTRATION RIGHTS AGREEMENT