As I said to you at the time, small-claims court. Considering the problems you (and two of our mates) have had with it, you could probably argue that it's not fit for purpose. How're you supposed to complete a 12hour race when it dies after 30mins?
If you're looking to replace the frame, I'd insist on a 2010 Epic frame replacement, rather than a cheaper hardtail, especially considering the money you've spent on services and time wasted while it's being repeatedly fixed. Then you could sell it and buy something tasty (Yeti arc?) or ride it and hope Specialized have sorted their shit out.