Had a similar problem today. I was driving home from work (in the dark) and everything went dead for a split second. I thought, thats very wierd, and then it happened again. I started getting nervous because everything turned off on the car including the lights for 1-2 seconds. Now that I've lowered my speed (thruway driving) it began happening very quickly 6-8 more times until finally shutting down the car giving me absolutely no power including hazards! Luckily I was going down my offramp by now and I muscled it (steering and brakes) around the corner onto the side of the street. I should mention that while I was coasting with no power there were vehicles in front and behind me providing light and luckily keeping some distance. While feeling helpless coming to a stop I also tried to restart it several times. When I came to a stop the first thing I thought of was the battery cable. I wiggled the ground cable through the access hole and she powered back up. It "tripped" 2 more times on the remainder of the trip home.
I cleaned and tightened all connections by and on the battery in hopes that it doesn't come back!