simplify code related to list of candidate Machines
This is a follow up to !99 (merged) to do a code simplification suggested by @feleouet
(the code can't be simplified as much as @feleouet expected, because the two lists are used for different purposes, but still the code is nicer after this refactoring, using CAPI collections to select MD or CP machines in selectMachineToDrain)
Edited by Thomas Morin