Change response format for subject of event-counts endpoint results

    In an attempt to make the data structure of the response format
    for the event-counts endpoint a bit more consistent, we've
    decided to introduce the keys `subject` and `subject-type` at
    the top level of each result map, rather than the variable
    list of keys such as `resource-title`, `resource-type`, `node`,
    etc.