#45: generalized ConsoleIn/ConsoleOut to work with any ostream/istream and changed names to StreamIn/StreamOut