Amended and Restated REGISTRATION RIGHTS AGREEMENT