Broke type declarations for graphiteGetData and graphiteGetJSONString into multiple lines because they were quite long.