add list all clusters endpoint

* some code cleanup as well