Import fixes

 - Add generated id for comments
 - Fix double comments
 - Assert external ids
Improve email debug logs