I had the same problem about 3 years ago with an ABS sensor, it was fixed under warranty so I dont know how much the total cost would have been.
That seems really high, was that a quote from a Mazda dealership?
Also, there are a few things that can cause the ABS and ebrake light to come on...