Added ping interval configuration.

Added a new config: default_ping_interval
Also added option to override this value in the ConnectionAdapter.
This allows the ping interval to be set on a per-client basis.