code-review: Use the correct rt.cpan.org bugs-per-dist.json endpoint

The previous url was the raw data cache and it is not meant to be served (hence the wrong content-type and intrusive HTML footer).

Additionally, adjust loop for the new JSON data structure (as prompted by RJBS via email).