Refactored background.js to follow jsLint coding standards and did some JS refactoring
Added dockblocks for background.js , refactred somw variable and function names
Fixed a bug with revoked permissions error. General refactoring to follow performance and coding standards