Deployment setup for scaler

This patch includes some code rearrangement and support for other provisioner APIs.