Switches some postgres fields to json, adds some api methods, prepares settings for moderation feature