added keepalive support

Add support for specifying a keepalive directive to server config