add rest api for content categories

@smn yeah. The `gitmodel` primary key is a uuid. So to make things consistent, I serialized to both fields, `id` and `uuid`.