Ataki/gridfs

@stvstnfrd to review commit
Since we're using explicit variable names, this code seems
self-documenting enough to forgo the comments.