Updated pdef service to handle non-MVD documents in Cortex/Corcode
Made use of format field in bson docs uniform across all uses.