Some order in plugin.c. Added more callbacks realted to sockets in the plugin api...