refactor($cordovaDialogs): add promises

resolves #21