agent: Restore the ability nice_agent_send() to send partial buffers
This is very important for reliable mode. Also use it in the GOutputStream so as to not get into the case where there is still some space in the TCP buffer, but not enough for one message. Also warn against this problem.
Showing with 134 additions and 101 deletions