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
Merge pull request #2 from okovalov/master

Fix for revoked permission bug. General refactoring to follow coding standards and increase performance