Remove hacky json render engine + middleware and use proper plugin.