Leaked API keys are nothing new, but the scale of the problem in front-end code has been largely a mystery - until now.