refactored background.js to hold array of tabs and status rather than count also, cleaned up directories