migrate to event page to free memory

Convert background page to event page https://developer.chrome.com/extensions/event_pages#transition