AMENDED AND RESTATED INVESTORS RIGHTS AGREEMENT