[MERGE] split relay index API/ABI in index.c/.h

Signed-off-by: David Goulet <dgoulet@efficios.com>