Changed entity ref handling, and changed validateNIDS() to check that node types of matching nids have mailharvest enabled.
Reworked search loop.
Fixed mailharvest_origin indexes and update.