AMENDED AND RESTATED REGISTRATION RIGHTS AGREEMENT by and among Cardiac Science, Inc. and The Investors Named Herein Dated: July 20, 2004