Lets you generate an undo context json for every controller action which you can later pass back to undo that action