add basic support for the help rpc command.
add support for the ping rpc command.

And the pingtime and pingwait fields of getpeerinfo.