adapt CredentialsStore to current remotestorage.js master