Implementing ability to configure heartbeat timeout from CLI
Adding logging of state changes, preparing to implement reconnection feature