Added untested support for saving CORTEX to Mongo. CORCODE, dialect to do.