Move $RPCURL to $CURL_OPTS array, cleanup