[bug 1045942] Add category to response table

This adds a "category" field to the response table and also the Input
API. Products can use this field for bucketing responses into topical
groups for easier analysis.