Added user confirmation for aborting the repositories dialogs

- bnc#886662
- includes a little refactoring of `SelectHandle` function which I thought would be the one to change (but CWM uses different handling for :abort)
- Thanks @jsrain for help with CWM
Yes, it's probably imported by some other module, it will break if that import gets removed in the future.