Add graph script

Add a script that generates a json file for use in graphing
data about bugs.

Change-Id: I99d1ed8e4626cdf46a2d1079e043890e90086af9