moved cluster state polling to a service
fixes document count to not take replicas into account

closes #190