Moved wiki sandbox to global scripts_sandbox. Added sandbox.js helper class that will check for sandbox loading and resubmit messages that are requested before the sandbox is loaded.