Add pingUrl and pingTimeout

I don't really have that much experience with groovy or gradle or ant or cargo. Still, I figured you might be able to tell me whether this would work or not or how you would prefer it to be written and I could learn something.