RPC, cosmetic: move RPC code to rpcmining.cpp module