fix http issue in Graphite class
add endpoint to get graphite data for js graphs