Check and improve the repair mode.

A ReconfigurationObjective can now also state about misplaced VMs.
code cleaning