unified memorystream; converted interfaces to use util::MemoryStream
Extending DataStream with a ResizableMemoryStream
test run of reading and writing