Basic MongoEngine port

This fixes #1, although it does remove the stats collection and, by extension, cripples the text generation code. Should create issues to track fixing these shortcomings if this merge happens.