New pw_rrd_info callback for jsonrpc; Cleaned and factorized the code