add rest api for content categories

Since we need this in pretty much every request (though not sure why) would it not make sense to add a decorator for this that adds it as an argument for the view?

Does Pyramid have the concept of class based views? That may also help.