Improve tool status output.

Change tool status output to include parent port, xlog location and replication
lag.  Cope with instances that are still starting up.  Also a little
refactoring to prevent code duplication.