Damn, sorry to hear man. That's just crazy. My theory as to what happened based on your explanation. During the first start, where the car started to rev up and down, I would suspect a fuel line burst, causing a drop in pressure, hence your idle problem.
Then when you stopped the car, fuel may have dripped onto the starter and/or fuel vapors filled the engine compartment, and when you attempted to start it again, the spark from the high voltage of the starter solenoid/starter motor just lit the fuel up like a fireball.
One of the many reasons I will never have a remote start in any of my cars.