Add support for converting raw_data and certificate objects to cybox. Fix a bug in mongoengine, and base64 encode file contents in cybox objects appropriately.