More C to C++ Transitions

Added interface for IOChannels
Added IOStream with all the io operations
Added RefCounted Base class