Adds history and versioning for MongoDB documents using mongoengine