Started to add tcp connection class skeleton.
Added logic for sending heartbeats.