Create iolib.h

Add common struct used between library and server.