API support for querying config categories.

Either return a list of distinct categories, or all configs under a
certain category