Substantially improved output handling.

Such handling has largely been rationalized and, contingent upon an
upcoming refactoring of @{message/error}, should be finally complete.