use promises when deleting cookies (for account switcher)

extends/fixes #1771