Convert background page to event page

It's Chrome recommendation to free up memory if the extensions runs as background page that sistematically performs some actions. See https://developer.chrome.com/extensions/event_pages#transition