add rest api for content categories

I would expect to get the json of the stored category back here.