GridFS implementation that emulates node.js 'fs' module