Move health checking logic out to a utility. Add a minion registry that health checks.

Can you add a doc.go also?