add rest api for content categories

@smn I'm not doing any magic unbundling (`**kwargs`) when accepting post/put so it shouldn't affect us.