I would start here, since I'm a big fan of keeping it simple when troubleshooting.
It is very common for the negative ground wire to break, often only inside the insulation at the battery terminal. Replacing that terminal has cured many such problems.
One other culprit for intermittent power loss is the kickstand safety switch. Unplugging it down by the kickstand solves that one.
Of course, you then have to be sure your kickstand is up before riding...I hear lowered kickstands while riding can be painful!
I believe most of us, including myself have unplugged ours...
The back firing sounds to me like your getting extra fuel in your exhaust while engine is off, then it's exploding when power returns...
I would first solve the cutting out, then be aware that your fuel mixture / exhaust may have a problem. Btw... Loose exhaust connections, like at the silencer, will cause backfires during deceleration on any bike.
Good luck!