fixed leaky encapsulation

All writing of memory streams should be done in the MongoConnection... the abstraction was leaking before.  This will also enable us to instrument the drive for tracing, metrics and logging.