RPC: Refactoring related to method invocation
This branch implements a number of refactorings in RPC method invocation that proved to be necessary prerequisites for #1427 (closed).
This branch implements a number of refactorings in RPC method invocation that proved to be necessary prerequisites for #1427 (closed).