Changes for MongoEngine 0.8.x

Exceptions have moved in MongoEngine 0.8. Handle importing from old or new locations.