Clean up getchaintips RPC call.

Clean up the code for "getchaintips" and extend the help string, in
accordance with discussion in the Github pull request.