A port of my port of MegaHal to MongoDB