Added copy constructor to CMemStream + cleanup.

git-svn-id: http://svn.purei.org/framework/trunk@401 6a6d099a-6a11-0410-877e-d5a07a98cbd2