Add lua sandbox data preservation

- All global data can be serialized to disk on sandbox destuction
and reloaded on init.