Implemented connect and connect at actions in PeerActivity
Get instance of the distributed system during construction of SmartActivity