Use new Storage wrapper in Profiles. Move Profiles to profiles.js.
Also fix a couple of bugs in ChromeStorageWrapper and change require/exports to be used only when available.