Add a server timeout for RPC queries.

See the comment in the code.
Adding RPC call for ChangeType
Refactoring tabletmanager RPC system.

It makes the actions type explicit. And also catches panics
properly.