Replication and resouce alarm metrics

Added metrics for replication counts (number of declared/synchronized/down replicas) and for alarms. Values for alarms are exposed as 0/1 for false/true.