Build your Node.js data layer with Mongoose.
Recent revisions are kept. Restoring one creates a new revision.