more restful API for the relays

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>