[minor] Added prefixed debug command
[major] Rewrote the RPC calling internals