CMS-1679 Typescriptify JsonRpcProvider and RemoteService