refactoring TrackerClient.hs in preparation of development of PeerToPeer.hs