REGISTRATION RIGHTS AND STOCK RESTRICTION AGREEMENT