Added BotResult, BotError, and as_io(...) for results refactor.
Major refactor related to usage of Results.