Cleanups to RPC code.

This is extracted from a significantly longer RPC change that I put down a couple of weeks ago.

It deletes some unused code, uses Issue and Book a little more, and fixes some long lines and indentation.

Feel free to use this or ignore it!
Nice.  We were going to create a Book anyway.  So you created it early and put it to use.  Good change.  Replaced 4 local variables with one that was going to get created anyway.