csrf support
improve serialization of contenttype, errors, and paginator