Switch jsonrpc library + add authentication