refactor($cordovaKeychain): add promises