Rewrite autoscaling and enable easier configuration of worker selection and autoscaling behaviour

Oh and this is test... ignore this thread...