Hacky, untested, ripped-straight-out version of Meteor's minimongo package.