HomeWildfire Games

Split off JSON-related function from ScriptInterface, clean up headers.

Description

Split off JSON-related function from ScriptInterface, clean up headers.

Follows rP25366.

JSON functions and ToString are movec to their own headers.
Also clean out a few PersistentRooted usage to use the 2-phase init to clean up scriptInterface usage.

With these functions split off, we can finally clean out headers and remove ScriptInterface.h from most of them, in favour of smaller and more precise headers.

Take the opportunity to clarify some comments regarding Mutability.

Differential Revision: https://code.wildfiregames.com/D3961