Cleaning up tabletmanager RPCAgent.

@alainjobart @aaijazi 

In preparation for work on external reparenting, I moved a function to a different file. Then I fixed the Golint suggestions in files I modified. Then I fixed Golint suggestions in files I modified to fix Golint suggestions. Then...