Added support for getting peer infos as JSON/REST.