convert preferences.dart ==> chrome_gen

Rev the chrome_gen dependency, and move the preferences class over to using it (it now supports chrome.storage).

@keertip