[ping, isup, rand, tld, wiktionary] Update to 4.0 API

Also clean up a bit, and add an example or two

Issues #125 and #276