add rest api for content categories

@smn I think it depends on naming convention. If you choose `/api/page/<uuid>/` then yes. But if we're going with the `.json` notation, then I think querystring is more appropriate. Unless we go for `/api/pages/<uuid>.json`?