Sync with Nodeca Core. Improved RPC interface & status codes.