add support to disable frontend/backend keepalives separately

Add support to disable keepalives for frontend and backend separately.
This may be useful in situations where maintaining any persistent
connections are undesirable, or with backend servers that are known to
deal with keepalives poorly.

Defaults are to keep them enabled for both frontend and backend.