REGISTRATION RIGHTS AGREEMENT Dated as of July 21, 1997 By and Between INLAND RESOURCES INC.