Add tests, introduce explicit default values, always respect COLUMNS.
* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Test the known cases.
* bzrlib/osutils.py:
(terminal_width): Add default values and always respect the
COLUMNS envrionment variable. Catch TIOCGWINSZ related errors more
broadly.