updating api return to be optimized for charts

API now returns in this pattern:
```
{  "numworks": 217, 
    "stats": {
        "category": [
            {
                "name": "M/M", 
                "value": 2366
            }, 
            {
                "name": "F/M", 
                "value": 1472
            }
        ]
    }
}
```
This is so we don't have to do any manipulation of the data returned in js.