#popup functional

#Modification:
1. popup is now functional
2. localstorage implementation for saving config, and message passing
for communication