Implemented target-changing-logic in write tool, such that the target is
the model which has been associated to most dragged over points.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>