extract js code for manipulating user settings
load user setting in background js
add js common lib for manipulating user settinsg
enable tracking on option changes
fix swtich cases
update badge while changin option
integrate app mode switching in content page