Refactoring IOStream.cpp; adding IOStream/Device.cpp.
Removing unneccessary include.