Using requirejs for the sandbox part. It's now possible to store data through GM, localStorage or cookies (from both the page and the sandbox).