Moved UI calls to a new ui_handler interface
Added batch_ui

Used in --console mode when stderr isn't a tty. No progress indicator is
displayed.
Don't try to use GUI in --dry-run mode
Pass ui_handler to driver
Check GUI availability in make_ui