FORM OF AMENDED AND RESTATED REGISTRATION AGREEMENT