Json endpoints for graphs

We are building a performance monitoring dashboard which gets performance data from jenkins builds. To plot this data we required the endpoints which can provide json data for each graph. Hopefully this is useful for others too so would like you to merge this PR.