Purged localstorage, started using configs

No more localstorage code to make it work temporarily for firefox, also
started using configs from chrome preferences.