add rest api for content categories

@smn I was thinking about the `slug`. The `uuid` is already unique and enforced.