client polishes, common tools update

please review nim_protocol_tools and socket_IO_tools
i am practically done, all i got left is to try to compile on vm,
waiting for your part