EXHIBIT 4 g REGISTRATION RIGHTS AGREEMENT Dated as of August 17, 2004