[plugins] director: JSON API code refactorization and API cleanups.
[plugins] director: adds support to disable/re-enable a full cluster.