removed obsolete files
added persistance
moved main.js to background.js so it runs only in background