F merge entities
A function to merge entities, which is needed by different modules, e.g. the crawler 2.0.
There are some functions dependent on this MR, e.g. !45 (merged) . If possible, review should be done simultaneously.
There is a basic unit test.