EXHIBIT 10.6 AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT