Moved deduplication-related methods to their own class and made it possible to define the class used in configuration.
Added support for specifying which single-valued fields are to be included in merged records. Added support for adding the source id to merged fields.