Extracted creation of ping task to constructor function + accessor for the
current ping-backlog.

Preparation for limitation of the ping-backlog's size.
Introduced "max-backlog" parameter as an upper limit for the ping-backlog.
Restrict the max. backlog size to a minimum of 1.
Only send a ping when the backlog size is below the upper limit.