Introduce KeepaliveTime and KeepaliveInterval options to specify time or
interval for keepalive.
Add a GUI to setup KEEPALIVE settings.