Restore a working UI implementation suitable for emacs shells.
* bzrlib/ui/__init__.py:
(CLIUIFactory.prompt, CLIUIFactory.note): Default implementations.
(SilentUIFactory.prompt): Override default implementation.
(make_ui_for_terminal): Let user override automatic detection.