Make use of more efficient EV_A_ and EV_P_ macros.
Add a protection against too short timeout values in configuration file. (libev polls every 1 second and keepalive are sent every timeout/2, so it does not makes sense to set a timeout to less than 3.)