Implement message passing from sandbox to background page and back.