Don't obfuscate JS to ease debugging
Simplify all camera flash logic
Prevent toggle flash button being seen when buttons are disabled
Added tests around new flash logic