xaiki: split out server init, and handle errors

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>