Sync with Nodeca Core. Enhance RPC and change IO status codes.