Added keep-alive sending mechanism.

Need a way to close the connection if the opposite side hasn't sent a keep-alive in some time.