Remove initng_io_open
Introduce GET_STATE and get rid of IS_*(serv) macros
Remove stale definition at io.h.