integrate flexible down scaling and predictive scaling

Predictive scaling now generates procs that can be run, supplying a
number of nodes. They will return true if predictive scaling would
trigger for that group size, and are used by flexible down scaling to
not scale down if predictive scaling would trigger a scale up.