Registration Rights Agreement Dated As of August 6, 1997