Use chrome.storage.sync instead of localStorage

Hack and patch.