add rest api for content categories

@smn I had it the other way round. I'll fix it in a new PR [issue-11](https://github.com/praekelt/unicore-cms/issues/11)