add rest api for content categories

It'd probably be worthwhile to see if there's something of a JSON schema definition?
Does the gitmodel stuff complain at all when stuff's thrown at it that it doesn't know about or support?