M3 related clean-ups. Networking upgraded to stream based API. GridFS does not work yet.