add rest api for content categories

Also because the success flag should be in the HTTP headers (something of an HTTP 2XX)