EXHIBIT 4.7 Amended and Restated Registration Rights Agreement