adds background script and message passing to load appId from storage