1 EXHIBIT 4.7 REGISTRATION RIGHTS AGREEMENT Dated as of July_21, 1998 by and between CALPINE CORPORATION