added detach listeners if extension switchOff or addEventListeners if extension switchOn
added json template for response from the server
fixed some bugs
and fixed one more bug
Merged lib/main.js
Removed not used icons