adding factory support for mongoengine with docs and tests