added function ping()

PING support after this commit
cf. return result["body"] = {status}

This command is closely related with 'pingItv' keyword of the
result["body"] of the function buy()