RPC: Add dumpblock and dumpblockbynumber methods