Merge users during migration (not finished yet). Issue #344.