JSON-RPC

Move away from XML-RPC to JSON-RPC