Take out function send_message.

This function is only now only in io.c
Delete unused source file.
Use define IO_WOULD_BLOCK instead of a magic number.