Refactored MeshReader/Writer to use streams (fixes #19)